$string = #כיתוב#; $count = 0;
for ($i = 0; $i < strlen($string); $i++) { if ($string[$i] != " ") { $count++; } }
return $count;