PHP; CORRECT NOTATION TO STORE VARIABLE NAME IN ARRAY - URGENT 500POINTS

What is the correct PHP notation to store a variable name in an array?




$A0=2;
$A1=3;
$array[0]='blah blah $A0 blah':
$array[1]='blah blah $A1 blah':

echo array[0];     --returns-->    blah blah $A0 blah
                           --not-->   blah blah 2 blah
jabootyboyAsked:
Who is Participating?
 
peyoxConnect With a Mentor Commented:
<?
   $A0=2;
   $A1=3;
   $array[0]='blah blah '.$A0.' blah';
   $array[1]='blah blah '.$A1.' blah';

   echo $array[0];
   echo $array[1];
?>
0
 
jabootyboyAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.