Timeline for How do I check if a certain set of words is in a string with PHP
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 20, 2013 at 1:07 | history | edited | Eduard Luca |
edited tags
|
|
Apr 20, 2013 at 1:06 | answer | added | Eduard Luca | timeline score: 1 | |
Apr 20, 2013 at 0:12 | comment | added | FrankieTheKneeMan |
Are you just trying to check if $text has the substring "by owner" ? Cause php.net/manual/en/function.strstr.php will do that... If you need case insensitivity, use php.net/manual/en/function.stristr.php . And php.net/manual/en/function.preg-match.php will allow you to use regular expressions to match variable spacing, exact words, etc.
|
|
Apr 20, 2013 at 0:09 | history | asked | user1973004 | CC BY-SA 3.0 |