note 16443 deleted from function.extract by jimw

From: Date: Sat, 08 Dec 2001 19:58:36 +0000
Subject: note 16443 deleted from function.extract by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22158@lists.php.net to get a copy of this message
extract() rejects variables with square brackets, which means you can't take advantage of creating arrays the way you can with form fields. The following example illustrates this functionality. <? $a = array("b[1]"=>"1", "b[2]"=>"1"); print(extract($a) . " vars extracted"); print_r($b); ?>

« previous php.notes (#22158) next »