note 1064 deleted from function.strpos by jimw

From: Date: Thu, 18 Oct 2001 21:24:09 +0000
Subject: note 1064 deleted from function.strpos by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19115@lists.php.net to get a copy of this message
If man simply wants to know wether $substring is a part of $string or not, it's easier to use regular expressions. <PRE> ereg($substring,$string); </PRE> Returns true if $substring is found anywhere in $string. Note, "ereg" is case sensitive, if You want case insensitive serch, use "eregi" instead.

« previous php.notes (#19115) next »