Published in: PHP
I use this object verry often, so that I only need to pass one object as parameter on any function. No need to wory when we refactore the function Usage: $var = new open(); $var->url = 'http://www.world.com'; $var->title = 'Testing Site';
echo some_function($var);
//PHP5 only// class open { { $this->fromArray($a); } function __set($name,$val) { $this->____x[$name] = $val; } function __get($name) { } function __isset($name) { } function toArray() { return $this->____x; } { } }
You need to login to post a comment.
