function &$foo ()
{
$stringVal = "temp";
return $stringVal;
}
$value = $foo() = "some new value";
This is triggering an error called, "Cannot use function in write context". Actually speaking it should work because we're returning a reference. Am I missing something here ? Please guide me.
Best Regards,
Abhijit
P.S. I find this forum very happening, no matter how silly my questions are they are always answered :)
{
$stringVal = "temp";
return $stringVal;
}
$value = $foo() = "some new value";
This is triggering an error called, "Cannot use function in write context". Actually speaking it should work because we're returning a reference. Am I missing something here ? Please guide me.
Best Regards,
Abhijit
P.S. I find this forum very happening, no matter how silly my questions are they are always answered :)
Comment