php loop through class properties

Solutions on MaxInterview for php loop through class properties by the best coders in the world

showing results for - "php loop through class properties"
Ella
26 Apr 2017
1foreach ($obj as $key => $value) {
2    echo "$key => $value\n";
3}