I am processing the result of a GROUP BY query which does not produce result for all the permutation of constants. It obviously gives an "Undefined Index" notice which I want to get of.
Of course I could use isset
but it would mean duplication of code (of the index). An other way would be to use a variable to store the index, but it would mean every such line of code is now two line. I like the readability of this line of code.
$stat->setMapped($companyStats["Account"][mypackage_MyClass::$STATUS_ACCEPTED]);
Is there any way (except the error operator @
to avoid this notice)?