title: Why the 'NULL' value of a variable is not displayed using echo and print but displayed with var_dump() function?
body: <p>As we all know if a variable is created without a value, it is automatically assigned a value of NULL.</p>
  
  <p>I have following code snippets :</p>
  
  <pre><code>&lt;?php
      $name;
      echo $name;     
  ?&gt;
  </code></pre>
  
  <p><strong>AND</strong></p>
  
  <pre><code>&lt;?php
      $name;
      print $name;     
  ?&gt;
  </code></pre>
  
  <p>Both of the above code snippets' output is as below(it's exactly the same) :</p>
  
  <pre><code>Notice: Undefined variable: name in C:\xampp\htdocs\php_playground\demo.php on line 7
  </code></pre>
  
  <p>I have another code snippet :</p>
  
  <pre><code>&lt;?php
      $name;
      var_dump($name);     
  ?&gt;
  </code></pre>
  
  <p>The output of above(last) code snippet is as below :</p>
  
  <pre><code>Notice: Undefined variable: name in C:\xampp\htdocs\php_playground\demo.php on line 8
  NULL
  </code></pre>
  
  <p>So, my question is why the value "NULL" is not getting displayed when I tried to show it using echo and print?</p>
  
  <p>However, the "NULL" value gets displayed when I tried to show it using var_dump() function.</p>
  
  <p>Why this is happening?</p>
  
  <p>What's behind this behavior?</p>
  
  <p>Thank You.</p>