note 58968 rejected from function.eval by dmytton

From: Date: Tue, 22 Nov 2005 17:41:37 +0000
Subject: note 58968 rejected from function.eval by dmytton
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-98936@lists.php.net to get a copy of this message
Note Submitter: coley.mike[at]gmail.com ---- I would like to execute a [php]foreach[/php] loop inside [php]eval[/php] because using it inside a loop is very slow. I tried this but it spat at some errors: [php]eval ("foreach (\$user_num as \$key=>\$value) \{ \$this->{$key} = {$value}; \}");[/php] Can anybody tell me how to get this working?

« previous php.notes (#98936) next »