1 post about
tips

Convert Array to Object & Object to Array in PHP

I love PHP Objects. Given an option of returning any data as an Array or Object, I would go for Objects. PHP Objects are clean and easy to write. // Echoing a PHP Array value echo $array['value']; // Echoing a PHP Object value echo $object->value; Now to the conversion (casting) of a PHP...