Re: Help with eval()

From: Date: Thu, 29 May 2003 15:05:07 +0000
Subject: Re: Help with eval()
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-149425@lists.php.net to get a copy of this message
I get a infinite loop and "parse error, unexpected $"... "David Grant" <david.grant@wiredmedia.co.uk> wrote in message news:3ED61F40.7010806@wiredmedia.co.uk... > zavaboy wrote: > > > Umm, have you tested it? It didn't work for me... > > > > > > "Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message > > news:3ED5DB4C.3090904@webglobe.sk... > > > >>for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) > > Untested: > > for ($i = $aNum; eval("return (\$i " . $do . " \$bNum);");) > > > -- > David Grant > Web Developer > > david.grant@wiredmedia.co.uk > http://www.wiredmedia.co.uk > > Tel: 0117 930 4365, Fax: 0870 169 7625 > > Wired Media Ltd > Registered Office: 43 Royal Park, Bristol, BS8 3AN > Studio: Whittakers House, 32 - 34 Hotwell Road, Bristol, BS8 4UD > > Company registration number: 4016744 > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > ********************************************************************** >

« previous php.general (#149425) next »