note 22035 added to function.eval
| From: | james at publitek dot NOSPAM dot com | Date: | Tue, 04 Jun 2002 15:10:47 +0000 |
| Subject: | note 22035 added to function.eval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31432@lists.php.net to get a copy of this message | ||
This drove me nuts for a couple of hours...
Make sure you remember to put a semicolon at the end of whatever you want evaluating:
$test = eval ( 'return(true);' );
Miss out the semi-colon in the above and you'll get an (unhelpful) error.
--
http://www.php.net/manual/en/function.eval.php
http://master.php.net/manage/user-notes.php?action=edit+22035
http://master.php.net/manage/user-notes.php?action=delete+22035
http://master.php.net/manage/user-notes.php?action=reject+22035