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

2003-10-13 Thread Rory McKinley
understand binary and those who don't (Unknown) - Original Message - From: PHP Webmaster [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 12, 2003 2:11 AM Subject: [PHP] Search for an exact string inside of another string Hi all, I have a little problem that I hope you

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

2003-10-11 Thread PHP Webmaster
Hi all, I have a little problem that I hope you can help me with. I have the following strings: $str1 = Bob; $str2 = My Name Is Bob; How can I get PHP to look for $str1 inside of $str2? Also, what about if Bob inside of $str2 is in different places? I would like something like: if ($str1 IS