- Forums
- PHP
- Fatal error: Can't use function return value in write context in
This Page Contains information about Fatal error: Can't use function return value in write context in By wallpaperama in category PHP with 1 Replies. [1228], Last Updated: Sat May 18, 2024
wallpaperama
Mon Dec 22, 2008
1 Comments
1756 Visits
today i was getting this error on my php script:
Fatal error: Can't use function return value in write context in /www/index.php on line 39
in case you are alos getting this error, i will try to help you.
on my case, my script was showing me this error because i was running a for loop and i forgot to add the semicolon
this is how i had it:
for( $i2 = 0; $i2 < count($exceptions) ++$i2 ){
and this his how it should be:
for( $i2 = 0; $i2 < count($exceptions); ++$i2 ){
NOTICE the difference, i have a semicolon after "count($exceptions)"
hope this helps you
some error, but different script
:p