However, if the empty array is created first:If the index or key is invalid the variable is seen just as a bit of text:Code: Select all
$a["pussy"] = "cat"; echo "It is a $a['fussy']!"; //It is a $a['fussy']!
Code: Select all
$a = array();
$a["pussy"] = "cat";
echo "It is a $a['fussy']!"; //It is a cat![EDIT: Forgot to add my XY version. I'm on 27.20.1000.)
XYplorer Beta Club