note 5378 deleted from function.strpos by nlopess

From: Date: Tue, 25 Jul 2006 20:14:25 +0000
Subject: note 5378 deleted from function.strpos by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-115187@lists.php.net to get a copy of this message
Note Submitter: GrandLibrarian at iname dot com ---- To find the position of a string in a case-insensitive manner without converting everything to lowercase, try using stristr:<br> $temp = stristr($haystack,$needle);<br> $pos = strlen($haystack)-strlen($temp);

« previous php.notes (#115187) next »