[PHP] Re: eval( ) statement yields parse error From: _lallous (elias_bachaalany <email protected>)
Date: 10/11/01

this will work:

"\$q[\$i+1] = '\"' . \$q[\$i+1] . '\"';"

your problem was like this:
$str = "$arr[$i+1]";
you can't do arithm. operations within a string, you can do this alone:
$str = "$arr[$i]";

"Rw" <roydallas61 <email protected>> wrote in message
news:20011011123759.96257.qmail <email protected>
> eval ("\$q[\$i+1] = \"$q[$i+1]\";");
>
> This yields an error:
> Parse error: parse error, expecting `']'' in /www/survdesc.php on line 60
>
> Any ideas?
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>