Why,
$b = [];
echo $b[0]; //gives E_NOTICE Undefined offset: 0
gives notice?
But,
$b = false;
echo $b[0]; // no notice or warnings
var_dump($b[0]) // returns NULL
Could this be due to php.ini settings?
Why,
$b = [];
echo $b[0]; //gives E_NOTICE Undefined offset: 0
gives notice?
But,
$b = false;
echo $b[0]; // no notice or warnings
var_dump($b[0]) // returns NULL
Could this be due to php.ini settings?