PDA

View Full Version : Looking for small PHP function


Yahook
05-27-2005, 10:11 PM
Is there any php function that will get $HTTP_POST_VARS and each var to some array?

For example:
$_POST['variable1']=='value1';
$_POST['variable2']=='value2';

The function should return $array['variable1']='value1' and $array['variable2']='value2'

xariton
05-28-2005, 05:55 AM
Just make
$myarray=$_POST;
and you'll have
echo $mayaray['variable1']; //prints value1

Yahook
05-28-2005, 01:40 PM
Thanks Xariton :wink: