note 8984 added to Function arguments

From: Date: Tue, 10 Oct 2000 05:49:59 +0000
Subject: note 8984 added to Function arguments
Groups: php.notes 
Request: Send a blank email to php-notes+get-6291@lists.php.net to get a copy of this message
oops re above: as i was saying, with "--enable-track-vars", the above strategy makes it real easy to globalize form data within functions, or to pass form data arrays to functions: <input type="text" name="test[color]" value="blue"> etc, etc. then in your function, pass $test to extract() to turn the array data into global vars. or function my_func($HTTP_POST_VARS){ extract($HTTP_POST_VARS); // use all your vars by name! } http://www.php.net/manual/functions.arguments.php

« previous php.notes (#6291) next »