PHP   20

empty Unset Undef Null

Guest on 12th May 2022 01:11:27 AM

  1. <?php
  2. $unset_var = 10;
  3. unset($unset_var);
  4.  
  5. $variation_array = array(
  6.   'unset var' => @$unset_var,
  7.   'undefined var' => @$undefined_var,  
  8.   'empty string DQ' => "",
  9.   'empty string SQ' => '',
  10.   'uppercase NULL' => NULL,
  11.   'lowercase null' => null,
  12.   );
  13.  
  14. ?>

Raw Paste


Login or Register to edit or fork this paste. It's free.