Forum Moderators: coopster
how do i intialise a variable. i have a variable called $auth and i want to write a litle something like
if ($auth == ""){ $auth=0; }
so if auth is equal to nothing set to 0 but i cant get this to work. help.
if(!$auth) { $auth = 0; }
if (empty($auth)) $auth = 0; if (!isset($auth)) $auth = 0;