For smart Primates & ROBOTS (oh and ALIENS ).

Blogroll

Thursday, October 10, 2013

Array to object in php

Array to object in PHP

$obj = (object) array('nName' => 'my_name', 'address' => 'my_address');
echo $obj->nName;
echo $obj->address;
Share:

0 comments:

Post a Comment

How to make center align child div

 How to make center align child div?   Suppose you have 2 Div tag. And want the make inner tag center <div id="d1">      ...

Ads Inside Post

Powered by Blogger.

Arsip

Blog Archive