note 8983 added to Function arguments
| From: | dietricha at subpop dot com | Date: | Tue, 10 Oct 2000 05:39:27 +0000 |
| Subject: | note 8983 added to Function arguments | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6288@lists.php.net to get a copy of this message | ||
if you compiled with "--enable-track-vars" then an easy way to get variable function args
is to use extract().
$args = array("color" = "blue","number" = 3);
function my_func($args){
extract($args);
echo $color;
echo $number;
}
http://www.php.net/manual/functions.arguments.php