i\'m not very firm with regular Expressions, so i have to ask you:
How to find out with PHP if a string contains a word starting with @ ??
e.g. i have a string l
break your string up like this:
$string = 'simple sentence with five words'; $words = explode(' ', $string );
Then you can loop trough the array and check if the first character of each word equals "@":
if ($stringInTheArray[0] == "@")