note 87355 added to function.is-null

From: Date: Mon, 01 Dec 2008 21:58:13 +0000
Subject: note 87355 added to function.is-null
Groups: php.notes 
Request: Send a blank email to php-notes+get-147496@lists.php.net to get a copy of this message
See how php parses different values. $var is the variable. $var = NULL "" 0 "0" 1 strlen($var) = 0 0 1 1 1 is_null($var) = TRUE FALSE FALSE FALSE FALSE $var == "" = TRUE TRUE TRUE FALSE FALSE !$var = TRUE TRUE TRUE TRUE FALSE !is_null($var) = FALSE TRUE TRUE TRUE TRUE $var != "" = FALSE FALSE FALSE TRUE TRUE $var = FALSE FALSE FALSE FALSE TRUE Peace! ---- Server IP: 208.69.120.35 Probable Submitter: 68.167.220.98 ---- Manual Page -- http://www.php.net/manual/en/function.is-null.php Edit -- https://master.php.net/note/edit/87355 Del: integrated -- https://master.php.net/note/delete/87355/integrated Del: useless -- https://master.php.net/note/delete/87355/useless Del: bad code -- https://master.php.net/note/delete/87355/bad+code Del: spam -- https://master.php.net/note/delete/87355/spam Del: non-english -- https://master.php.net/note/delete/87355/non-english Del: in docs -- https://master.php.net/note/delete/87355/in+docs Del: other reasons-- https://master.php.net/note/delete/87355 Reject -- https://master.php.net/note/reject/87355 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#147496) next »