Yes a couple of ideias..
It's possible to do with with a regular expression ..
and with a simple loop ..
<?
$spaces = 0;
for ( $i=0; $i<=strlen($string); $i++ ) {
if ( $string[$i] == " " ) {
$spaces++;
}
}
if ( $spaces > 2 ) {
echo "3 or more spaces";
}
else {
echo "less than 3 spaces..";
}
?>
Should do the trick ..