note 784 deleted from function.strpos by jimw

From: Date: Thu, 18 Oct 2001 21:23:59 +0000
Subject: note 784 deleted from function.strpos by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19114@lists.php.net to get a copy of this message
I resolved the problem by adding an underscore "_" to the variable and then testing for "needle". Of course, if you're looking for an underscore, you've got a problem! $newhaystack = "_".$haystack; if (strpos($newhaystack, $needle)) { ... }

« previous php.notes (#19114) next »