class someClass
{
private $data = array();
function __construct($data)
{
$this->data = $data;
}
function __get($id)
{
return isset($this->data[$id])?$th
}
function __set($id, $value)
{
$this->data[$id] = $value;
}
}
$data = array ('name'=>'John');
$x = new someClass($data);
echo $x->name;
Main Topics
Browse All Topics





by: jdav357Posted on 2009-11-06 at 07:54:44ID: 25760187
This link to the data types that I can pass may be of use as it is what I am using to do it: r_guide/li braries/xm lrpc.html
http://codeigniter.com/use