PHP Fatal error: Can't use method return value in write context in 
asked by Not Registered on 27 March 2008 19:20
Can anybody help me?
Answers
Could you please post your code? I can only guess you tried something like:
$obj = new Foo();
if (1 == $obj->bar()) continue
Am I right?
$obj = new Foo();
if (1 == $obj->bar()) continue
Am I right?
this error appear in this case, for example:
<?php
$object = new Object();
if( isset($object->getParam()) ){
die('ok');
}
?>
<?php
$object = new Object();
if( isset($object->getParam()) ){
die('ok');
}
?>
answered by Broderix Bro on 29 September 2008 14:55
Please see
http://www.bala-krishna.com/php-fatal-error-fix-cant-use-method-return-value-in-write-context
http://www.bala-krishna.com/php-fatal-error-fix-cant-use-method-return-value-in-write-context


















