functionfind_short(string$str):int{$str=explode(' ',$str);// you can use preg_split('/\s/', $str);usort($str,fn($a,$b)=>strlen($a)>strlen($b));returnstrlen($str[0]);}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Here's the solution in PHP
Note: works only on 7.4+