Parse error: Needs T_VARIABLE or $
| From: | Jason Lustig | Date: | Fri, 29 Jun 2001 21:55:11 +0000 |
| Subject: | Parse error: Needs T_VARIABLE or $ | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-55641@lists.php.net to get a copy of this message | ||
This is really weird. Very, very, very weird. I have the following code in a
script:
if (!empty(trim($rowData[3])))
{
$tdStr.= trim($rowData[3]);
}
Now, when I run it, I get the following error:
Parse error: parse error, expecting
T_VARIABLE' or '$'' in
c:\server\wwwroot\contributors.php on line 70
(note: line 70 is the first liine of the code snippet above)
Now, this shouldn't be a problem. There is no problem with the parens, and I
don't see anything wrong with the code. Can someone help me out with this?
This is happening in another script (when I use the empty() function) and it
is really weird...
--Jason