First of all thank you for you help and patience
but here is what I'm trying to do
$to_show=array("aspk0","cfp0","anic0");
$u_pick=array();
$user_select="";
function Parse_data(){
global $to_show,$u_pick;
for($j=0;$j< count($to_show);$j++) {
$newvar=${$to_show[$j]}; //this will be data passed by form
echo($newvar);//test
if($newvar != "void"){
array_push($u_pick,$newvar);}
}
}
in this case when echo $newvar it returns nothing