Answer the question
In order to leave comments, you need to log in
How to show Notice and Warnings and not stop the application?
Now if you access an array key that does not exist, a beautiful page immediately appears with an error that the key does not exist:
ErrorException
Undefined index: MyMissKey
AppServiceProvider
the method, boot
I can only hide the warnings altogether error_reporting(E_ALL ^ E_NOTICE);
, but that's not it.
Answer the question
In order to leave comments, you need to log in
https://www.php.net/manual/en/function.isset
https://www.php.net/manual/en/function.array-key-exists
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question