note 91201 added to function.eval

From: Date: Fri, 29 May 2009 16:08:09 +0000
Subject: note 91201 added to function.eval
Groups: php.notes 
Request: Send a blank email to php-notes+get-156153@lists.php.net to get a copy of this message
Never, Never ever forget the ";" on the end of the eval string, if you are adding it to eval a variable attribuition; <?php $data = "$key"."_$sequence"; eval("\$idct=\$idedit_$data;"); ?> we took a long time to discover that the problem was a ";" missing in the end. ---- Server IP: 187.16.23.128 Probable Submitter: 200.161.58.223 ---- Manual Page -- http://www.php.net/manual/en/function.eval.php Edit -- https://master.php.net/note/edit/91201 Del: integrated -- https://master.php.net/note/delete/91201/integrated Del: useless -- https://master.php.net/note/delete/91201/useless Del: bad code -- https://master.php.net/note/delete/91201/bad+code Del: spam -- https://master.php.net/note/delete/91201/spam Del: non-english -- https://master.php.net/note/delete/91201/non-english Del: in docs -- https://master.php.net/note/delete/91201/in+docs Del: other reasons-- https://master.php.net/note/delete/91201 Reject -- https://master.php.net/note/reject/91201 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156153) next »