Last active
May 15, 2018 11:53
-
-
Save MushuLeDragon/9021f146641d46b82d2b42b27258dc90 to your computer and use it in GitHub Desktop.
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 characters
<?php | |
// Convert sdtClass Object (stdClass Array) to Array | |
function stdClassToArray($variable) { | |
$variable = json_decode(json_encode($variable), true); | |
return $variable[0]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment