/ Published in: PHP
URL: http://fuselogic.haltebis.com
Usage:
$constant = new constant(); $constant->test = 'abcd'; $constant->test = '1234'; echo $constant->test; // out put -> 'abcd'
Expand |
Embed | Plain Text
<?php class constant { { $this->fromArray($a); } function __set($name,$val) { { $this->____x[$name] = $val; } } function __get($name) { } function __isset($name) { } function toArray() { return $this->____x; } { { foreach($a as $k => $v) $this->____x[$k] = $v; } } } ?>
You need to login to post a comment.
