Folks,
Can you spot the different ways I typed each var_dump() ?
Note the comments. It mentions my experimenting findings. If you see any comment in error then object to it and then let me know.
Thanks
[code]
//Var_dump() Using Formula:
echo __LINE__; echo ‘<br>’;
echo ‘var_dump() Arrays’; echo ‘<br>’;
echo var_dump($array_1); //Correct. Array Variable not within quotes.
echo ‘<br>’;
echo var_dump(‘$array_2’); //Don’t ‘Single Quote’ the Array Variable.
echo ‘<br>’;
echo var_dump(“$array_3”); //Don’t “Double Quote” the Array Variable.
echo “<br>”;
echo var_dump($array_4); //Correct. Array Variable not within quotes.
echo ‘<br>’;
echo var_dump($array_1,$array_2,$array_3,$array_4); //Correct. Array Variables not within quotes. More than one Variable (including Arrays) can be added.
echo ‘<br>’;
*/