Tag Archives: multidimensional

Convert multidimensional array to object – PHP

As you may already know, you can convert an array into an object simple like this: <?php $array = array(‘first_name’ => ‘John’, ‘last_name’ => ‘Doe’); $object = (object) $array; ?> Then you call the object: <?php echo $object->first_name; ?> The problem is that you can’t do this with multidimensional array. So, for this, i’ve found read more »

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS