note 121879 deleted from function.stristr by cmb

From: Date: Fri, 17 Nov 2017 16:35:21 +0000
Subject: note 121879 deleted from function.stristr by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-209168@lists.php.net to get a copy of this message
Note Submitter: angelaseise3 at gmail dot com ---- Make sure to put extra parentheses around the stristr function, so that it evaluates before checking its value. if ((stristr($haystack, $needle)) !== false) { do stuff; }

« previous php.notes (#209168) next »