Skip to content

Instantly share code, notes, and snippets.

@djpate
Created September 12, 2011 11:46
Show Gist options
  • Save djpate/1211081 to your computer and use it in GitHub Desktop.
Save djpate/1211081 to your computer and use it in GitHub Desktop.
public function bind(array $values){
foreach($values as $field => $value){
$this->$field = $value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment