note 34821 added to function.strchr

From: Date: Thu, 07 Aug 2003 16:46:13 +0000
Subject: note 34821 added to function.strchr
Groups: php.notes 
Request: Send a blank email to php-notes+get-53580@lists.php.net to get a copy of this message
strchr() function is useful when checking if a given string or character exist within the other string: $cat = "cat"; $dog = "dog"; $big_string = "cat and dog are pets"; if(strchr($big_string,$cat)) echo ("word \'cat\' exists in the big_string"); ---- Manual Page -- http://www.php.net/manual/en/function.strchr.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34821 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34821&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34821&report=yes

« previous php.notes (#53580) next »