Date: 10/11/01
- Next message: Andrey Hristov: "Re: [PHP] eval( ) statement yields parse error"
- Previous message: Kamil Nowicki: "[PHP] Re: Re: Headers, JavaScript & PHP"
- In reply to: Rw: "[PHP] eval( ) statement yields parse error"
- Next in thread: Andrey Hristov: "Re: [PHP] eval( ) statement yields parse error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Andrey Hristov: "Re: [PHP] eval( ) statement yields parse error"
- Previous message: Kamil Nowicki: "[PHP] Re: Re: Headers, JavaScript & PHP"
- In reply to: Rw: "[PHP] eval( ) statement yields parse error"
- Next in thread: Andrey Hristov: "Re: [PHP] eval( ) statement yields parse error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

