我怎样才能在这个为了把这个词用少于5个字符数组:计数字符串中的每个单词的每个字符和使用PHP
- remove the period from the end of words in a string
- put all the words that are less than 5 characters in an array
- eliminate duplicate words
,然后返回结果。例如:
我的程序就像我写故事一样。
$results = ('I', 'like', 'write');
通知,所有词都小于5个字符,只有有一个“我”,因为重复被拆除