Array to object in PHP
$obj = (object) array('nName' => 'my_name', 'address' => 'my_address');
echo $obj->nName;
echo $obj->address;
$obj = (object) array('nName' => 'my_name', 'address' => 'my_address');
echo $obj->nName;
echo $obj->address;
For smart Primates & ROBOTS (oh and ALIENS ).
Image Zoom Hover Effect Image zoom hover out effect ...
0 comments:
Post a Comment