/ Published in: PHP
                    
                                        Esta función permite transformar un objeto a un array.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 function object_to_array($mixed){ foreach($mixed as $key => $val) { $new[$key] = object_to_array($val); } } else $new = $mixed; return $new; }
Comments
                    Subscribe to comments
                
                