/ 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);
Usage:
$var = new open();
$var->url = 'http://www.world.com';
$var->title = 'Testing Site';
echo some_function($var);
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//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; } { } }