note 52212 rejected from function.stripslashes by betz

From: Date: Thu, 08 Sep 2005 13:22:21 +0000
Subject: note 52212 rejected from function.stripslashes by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-94917@lists.php.net to get a copy of this message
Note Submitter: marijn78 at hotmail dot com ---- If you have a string which might be null it won't be null anymore after you do a stripslashes. $s = null; $r = stripslashes($s); if ($r == "") echo "this is the result"; if (is_null($r)) echo "instead of this"; It took me some time to figure this out it might safe you some time.

« previous php.notes (#94917) next »