search

Home  >  Q&A  >  body text

Why does it not report an error when using a non-existent subscript when using a null type variable as an array?

$res = json_decode($data['data']['point']);

dump($res); //Output null

------ ----------------------------------

dump($res['aa']); // Still output null, no error will be reported



贝壳里的石头贝壳里的石头2002 days ago899

reply all(0)I'll reply

No reply
  • Cancelreply