blankskull
01-30-2012, 04:34 PM
session_start();
$_SESSION['jobs_username']="john";
$pox='jobs_username';
$dox="_SESSION['" . $pox . "']";
echo $$dox;
N.B. The output should be 'john'. But I did not get the expected result. Can anyone please help me? I am grateful to this site because I got the first free help on php from this site.
$_SESSION['jobs_username']="john";
$pox='jobs_username';
$dox="_SESSION['" . $pox . "']";
echo $$dox;
N.B. The output should be 'john'. But I did not get the expected result. Can anyone please help me? I am grateful to this site because I got the first free help on php from this site.