Ok, I know strict comparison is usually safer, but this, really PHP .. ?!

$value = 0;
if ($value == 'isNull') print 'I am null';


https://chaos… on Fri, 04/11/2022 - 10:03

@swentel i guess it works, nice one. I wish php could through a warning when it converts between types

Add reply

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
Have you written a response to this? Let me know the URL by sending a webmention.