<?php $obj = new \stdClass(); $obj->foo = 'bar'; $obj->baz = 'quux'; foreach (get_object_vars($obj) as $key => $value) { echo($key . ' => ' . $value . "\n"); }
You have javascript disabled. You will not be able to edit any code.