function RemoveLess($String,$Char=2)
{
$StringArray=explode (" ",$String);
foreach ($StringArray as &$Word)
{
if (mb_strlen($Word,"UTF-8")>$Char)
{
$Str.=$Word." ";
}
}
return trim($Str);
}
$text="any text here - لا اله إلا الله محمد رسول الله";
echo RemoveLess($text);