note 40254 added to function.extract

From: Date: Thu, 26 Feb 2004 18:01:59 +0000
Subject: note 40254 added to function.extract
Groups: php.notes 
Request: Send a blank email to php-notes+get-65817@lists.php.net to get a copy of this message
if there is a collision, EXTR_PREFIX_ALL overwrite the existing variable. <?php $name_1 = "john"; $names = array("silvano","thomaz","crema","jonas"); extract($names, EXTR_PREFIX_ALL, "name"); echo $name_1; // output: thomaz ?> ---- Manual Page -- http://www.php.net/manual/en/function.extract.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40254 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40254&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40254&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65817) next »