PHP ZCE mock test, interview preparation, daily lessons under chalk talk

Thursday, January 12, 2012

ZCE Zend Certified Engineer - Number update problem

View the Complete Blog on ZCE


function updateValue(&$number)
{
$number = $number +1;
}
$val = 9;
echo updateValue(&$val);

Answer: It will also return blank
becuase despite updating $number is not returned from the function

No comments:

Post a Comment