<?php class Obj { public $str1 = 'foo'; public $str2 = 'bar'; } $obj = new Obj; foreach($obj as $s) var_dump($s); echo 'string: ' . vsprintf('%s %s', $obj);
You have javascript disabled. You will not be able to edit any code.