Skip to content

Instantly share code, notes, and snippets.

@donaldallen
Created March 5, 2013 16:11
Show Gist options
  • Save donaldallen/5091429 to your computer and use it in GitHub Desktop.
Save donaldallen/5091429 to your computer and use it in GitHub Desktop.
$post = (object)array();
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