note 9789 modified in strstr by ronabop

From: Date: Fri, 24 Nov 2000 06:36:41 +0000
Subject: note 9789 modified in strstr by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-8077@lists.php.net to get a copy of this message
This functions is also widely used for checking if a string is in a string since it returns false if the string was not found in container. $string = "PHP"; $container = "I love writing PHP code."; if(strstr($container,$string)) { echo "found it."; } else { echo "not found."; } http://www.php.net/manual/function.strstr.php

« previous php.notes (#8077) next »