Forum Moderators: coopster
if ( strpos($string, '#')!== false ) { ...do stuff, cause # is in there... } else { ...it's not there... }
Cheers
I was just playing around and found that this worked as well: $namesBuffer = "lalal # 1234 # haahha"; $result = preg_match("/#/", $namesBuffer);
Yeah.......so that was a little bit more easy to come up with than I thought....
--Nick