HJ1 字符串最后一个单词的长度 <?php $str = fgets(STDIN); $strArr = explode(' ',$str); echo strlen(trim(end($strArr))); ?>