/ Published in: PHP
Usage:
$constant = new constant();
$constant->test = 'abcd';
$constant->test = '1234';
echo $constant->test; // out put -> 'abcd'
$constant = new constant();
$constant->test = 'abcd';
$constant->test = '1234';
echo $constant->test; // out put -> 'abcd'
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?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; } } } ?>
URL: http://fuselogic.haltebis.com