Answers for "how to loop object in php"

1

php loop through object

foreach ($obj as $key => $value) {
    echo "$key => $valuen";
    //echo "test greper";
}
Posted by: Guest on May-11-2021
0

php loopthrough object

foreach ($objects as $obj) {
   echo $obj->property;
}
Posted by: Guest on May-15-2020

Browse Popular Code Answers by Language