In this article, it mentions:
foreach does not support the ability to suppress error messages using ‘@’.
How do I avoid an output foreach error? I do not want see:
Warning: Invalid argument supplied for foreach()
Is there a way to make an if else judgement?
Before foreach check if variable contain array: