Created
December 17, 2010 04:18
Revisions
-
victorbstan created this gist
Dec 17, 2010 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ <?php /* This function saved my life. found on: http://www.sitepoint.com/forums//showthread.php?t=438748 by: crvandyke It takes an object, and when all else if/else/recursive functions fail to convert the object into an associative array, this one goes for the kill. Who would'a thunk it?! */ $array = json_decode(json_encode($object), true);