Hello..
Sorry, I'm unable to think of a clever way to do this.
You could try 2 things.
1: Regular Expressions
2: Arrays... . ??
I'll try arrays :o
break the string into an array using spaces
as the delimiter
$arr=explode(" ", $text);
then make a for loop and go through the
array and keep everything that has a "dot"
in a word. (or whatever kind of a loop you want to use..)
for ($i = 0 ; $i < sizeof($arr) ; $i++ ) {
$whereisdot=strrpos($arr[$i], '.');
if (($whereisdot)&&(strlen($arr[$i])<>$whereisdot+1)) {
echo $arr[$i]."\n";
}
}
It's ugly, but it will work... 🙂
Regular expressions should work alot better.
bye!