Created
April 10, 2015 20:16
-
-
Save woombo/e25c4f38b2dbc3e1057b to your computer and use it in GitHub Desktop.
Enforce array on an object
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 | |
// Enforce all rows are converted to an array when needed. | |
$rows = json_decode(json_encode($endpoints), TRUE); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment