I have a question regarding NULL in PHP:

  $a="";
  if($a == NULL) {
      echo 'is null';
  }

Why do I see is null when $a is an empty string? Is that a bug?

10 Answers
10

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *