note 91200 added to function.eval

From: Date: Fri, 29 May 2009 16:07:06 +0000
Subject: note 91200 added to function.eval
Groups: php.notes 
Request: Send a blank email to php-notes+get-156152@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/91200 Del: integrated -- https://master.php.net/note/delete/91200/integrated Del: useless -- https://master.php.net/note/delete/91200/useless Del: bad code -- https://master.php.net/note/delete/91200/bad+code Del: spam -- https://master.php.net/note/delete/91200/spam Del: non-english -- https://master.php.net/note/delete/91200/non-english Del: in docs -- https://master.php.net/note/delete/91200/in+docs Del: other reasons-- https://master.php.net/note/delete/91200 Reject -- https://master.php.net/note/reject/91200 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156152) next »