Posted By

deftonez4me on 08/18/09


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

umang_nine
jmiller
silentbob84


Simplify Submitted Form Variables - i.e. "$_POST['name'] to $name"


 / Published in: PHP
 

  1. foreach($_REQUEST as $key => $val) { $$key = $val; }
  2.  
  3. foreach($_GET as $key => $val) { $$key = $val; }
  4.  
  5. foreach($_POST as $key => $val) { $$key = $val; }

Report this snippet  

You need to login to post a comment.