1.php
<?php
header( 'Location: 4.php?$x=1&y=2&z=3' );
?>
sends the value of x ,y ,z
4.php
<?php
print '<pre>';
$a= $_GET ;
echo $a[x];
print '</pre>';
?>
when we call 1.php it is redirected to 4.php
it displays the value of x correct but it gives error
Notice: Use of undefined constant x - assumed 'x' in C:\wamp\www\4.php on line 6
why it gives error ?