Created
February 24, 2016 04:47
-
-
Save hsleonis/95c00aed92a8e137b41c to your computer and use it in GitHub Desktop.
Looping through all the properties of object php
This file contains hidden or 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 | |
foreach ($obj as $key => $value) { | |
echo "$key => $value\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment