I want to compare parts of two strings, I don't know how... My situation: $string1 = "A B C D E F G H" $string2 = "whatever" If any of the charachters i string1 is in string2 - Return True else False...HOW?
try the php.net manual. Look at string functions, there is a BEVY of ways to do it.
Damn you string function freaks
<h4>STOP THE MADNESS!!!</h4>
be a manly camel man and use regex's like your mamma told ya.
<? $string = "whatever" if (preg_match('/[a-h]/i',$str)) { //do something } ?>
Two things to keep in mind: A != a, be carefull about case sensitivity. "A B C D E F G H" also contains 7 spaces, should it also match on spaces or just A through H?
A forum, a FAQ, email notification, what else do you need?
Just the letters which is simply symbols of anything! like: $string1 = Art Simon Leslie Death etc.