Monatsarchiv für Oktober 2011

 
 

PHP: Playing with stdClass

php-logoI wrote some code to check what PHP included stdClass is capeable of.
You can find the code at gisthub:
https://gist.github.com/1309031

stdClass is really just a wrapper around a array that can be casted to a array.
Good thing about it is, you can extend it with some failsave __get($key) function.