On 03/15/2011 07:30 AM, Steve Staples wrote:
> 
> Wouldn't this be better to use, as it is meant to search for the string
> inside the string?  (use use regex)
> 
> if(stristr($name, 'Jackson'))
> {
>       echo "String is in String";
> }
> else
> {
>       echo "Failed";
> }
> 
> http://ca.php.net/manual/en/function.strstr.php  (case sensative)
> http://ca.php.net/manual/en/function.stristr.php (case insensative)
> 
> Steve.
> 


>From your link:

    Note:

    If you only want to determine if a particular needle occurs within
haystack, use the faster and less memory intensive function strpos()
instead.


-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to