--TEST-- Test array_walk() function : object functionality --FILE-- pri_value = $setVal; $this->pub_value = $setVal; $this->pro_value = $setVal; } }; // object for 'input' argument $input = new MyClass(10); var_dump( array_walk($input, "callback", 1)); echo "Done" ?> --EXPECTF-- *** Testing array_walk() : object functionality *** %unicode|string%(18) "%r\0%rMyClass%r\0%rpri_value" int(10) int(1) %unicode|string%(9) "pub_value" int(10) int(1) %unicode|string%(12) "%r\0%r*%r\0%rpro_value" int(10) int(1) bool(true) Done