note 34821 deleted from function.strchr by didou

From: Date: Thu, 07 Aug 2003 16:56:15 +0000
Subject: note 34821 deleted from function.strchr by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53586@lists.php.net to get a copy of this message
Note Submitter: Moharo@hotmail.com ---- 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");

« previous php.notes (#53586) next »