$arrayName3=array("name"=>"张三","age"=>18,"gnner"=>"男",0=>12);
echo $arrayName3[1];
Notice: Undefined offset: 1 in /data/lab/3fkt36wm/index.php on line 15
Your array is an associative array, not an index array. Therefore, you cannot use subscripts to access elements in the array, you can only access them through the key names you set
Your array is an associative array, not an index array. Therefore, you cannot use subscripts to access elements in the array, you can only access them through the key names you set