Debugging value returned by class function call
Posted: Sat Jul 29, 2006 7:53 am
Im debugging one class and was using die($obj->varORmethod) to get the run-time value.
but if I change the last line to die($obj->foo());, it returns blank.
$cls->foo() returns an integer.
How is this possible ?
Using PHP 5.1.4
Thanks
Code: Select all
include_once('cls.class.php');
$obj = new cls();
echo $obj->foo(); die(); # Works. Outputs correct value$cls->foo() returns an integer.
How is this possible ?
Using PHP 5.1.4
Thanks