/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Funcion de Objeto a Array function object_to_array($object) { { foreach($object as $key => $value) { $array[$key] = object_to_array($value); } return $array; } return $object; } // Funcion de Array a Objeto { return (object) $array; }
Comments
