isset doesn't like "->"?
| From: | UberGoober | Date: | Mon, 11 Nov 2002 00:34:52 +0000 |
| Subject: | isset doesn't like "->"? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-123754@lists.php.net to get a copy of this message | ||
I don't know if this is a bug, or what, but I get an error when trying the
following
if ( isset($adodbobject->Fields('myresult') ) ) { // do something }
PHP throws an error ( not warning ) saying:
Parse error: parse error, expecting
','' or ')'' in
/path/to/index.php on
line 45
However, when I modify the isset to look like this:
$_q = $adodbobject->Fields('myresult');
if ( isset($_q) ) { // do something }
It works fine.
Is this proper behavior for isset, or is this a php bug? I can't search
google groups for "->", or any other search engine for that matter. So it
has been tough trying to see if anyone else gets this error.
Many thanks!
--Brian
PS: what is the proper term for the "->" syntax? pointer?