I want to access information in an associative array by index like so
$arr = Array(
['mgm19'] => Array(
['override'] => 1
)
);
$override1 = $arr['mgm19']['override'];
$override2 = $arr[0]['override'];
but i get nothing from override2 why ?
Because
$arrhas only one index,mgm19. Nothing is associated to the index0. If you don’t know the index or don’t want to use it, useforeach: