1

I have this line of code that seems to be giving me the Out of Memory error on PHP.

 //Gives OOM when $list[0] is undeclared
 if(isset($list[0]) == false) { $message = 'Variable is not set. Unable to validate variable'; }

May I know if there's a way to check if a variable is undeclared and why is isset giving me an Out of Memory error?

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
toffee.beanns
  • 435
  • 9
  • 17

0 Answers0