unexpected syntax error in an expression involving the "trim" function
| From: | Jean Flinois | Date: | Wed, 29 Mar 2000 14:11:28 +0000 |
| Subject: | unexpected syntax error in an expression involving the "trim" function | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-12795@lists.php.net to get a copy of this message | ||
Hello !
With PHP4 RC1 / Apache 1.3.9 / Linux (module form),
I get an unexpected syntax error in the following statement :
if (empty(trim($aRow["strUrl"]))) echo $aRow["strTitre"];
the error is : Parse error: parse error, expecting
T_VARIABLE' or
'$'' in
/home/httpd/...
It works if we do this workaround :
$strtemp = trim($aRow["strUrl"]);
if (empty($strtemp)) echo $aRow["strTitre"];
Maybe a bug? I guessed you'd like to know.
Rgds,
Jean Flinois <flynn@vtech.fr>
V-Technologies Savennieres,
France