Skip to content

Instantly share code, notes, and snippets.

@donaldallen
Created March 5, 2013 16:46
Show Gist options
  • Save donaldallen/5091713 to your computer and use it in GitHub Desktop.
Save donaldallen/5091713 to your computer and use it in GitHub Desktop.
$post = new stdClass;
foreach ($this->rules as $key => $field) {
$post->$field['field'] = set_value($field['field']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment