Using Null

  private $my_variable; $my_variable = null; if (isset($my_variable)) //would be better named isnotnull() $my_variable=1; if (is_null($my_variable)) $my_variable=1;    

Read More