[PHP] Re: Search for an exact string inside of another string

2003-10-11 Thread Manuel Vázquez Acosta
Try: if (strpos($str2, $str1) !== false) echo $str1 is inside $str2; else echo could not find $str1 inside $str2; Php Webmaster [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I have a little problem that I hope you can help me with. I have the following strings:

[PHP] Re: Search for an exact string inside of another string

2003-10-11 Thread PHP Webmaster
Manuel VáZquez Acosta [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try: if (strpos($str2, $str1) !== false) echo $str1 is inside $str2; else echo could not find $str1 inside $str2; Php Webmaster [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all,