Skip to content

Instantly share code, notes, and snippets.

@lukehedger
Created March 20, 2014 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukehedger/9662442 to your computer and use it in GitHub Desktop.
Save lukehedger/9662442 to your computer and use it in GitHub Desktop.
Quick object in PHP
$obj = (object) array('prop' => value, 'prop' => $var);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment