重复的数组字符串 [英] Duplicate array strings
问题描述
$ rambo [1] =" daffy duck";
$ rambo [2] =" mad max";
$ rambo [3] =" ; daffy duck" ;;
$ rambo [4] =" superman";
等等
如何删除从数组中复制字符串? 。
(''daffy duck''在数组中可能出现两次以上)
我已经可以通过一个luddite循环来实现 - 但是必须有一个更好/更简单的方法来实现它。
-
(在回复时禁止使用他的小狗和他的小狗这个帖子就像我/ b $ b实际上并不需要他们的任何帮助)
$rambo[1]="daffy duck";
$rambo[2]="mad max";
$rambo[3]="daffy duck";
$rambo[4]="superman";
etc etc
How do i remove duplicate strings from a array ? .
(''daffy duck'' could appear more than twice in the array)
I can already do it via a luddite loop - but figure there must be a
better/easier way of doing it .
--
(stuckle and his lapdogs are forbidden from replying to this thread as i
dont actually want any help from them)
推荐答案
rambo [2] =" mad max" ;;
rambo[2]="mad max";
rambo [3] =" daffy duck";
rambo[3]="daffy duck";
rambo [4] =" ;超人;
等等
如何从数组中删除重复的字符串? 。
(''daffy duck''在数组中可能出现两次以上)
我已经可以通过一个luddite循环来实现 - 但是必须有一个更好/更简单的方法来实现它。
-
(在回复时禁止使用他的小狗和他的小狗这个帖子,因为我不想要他们的任何帮助。
rambo[4]="superman";
etc etc
How do i remove duplicate strings from a array ? .
(''daffy duck'' could appear more than twice in the array)
I can already do it via a luddite loop - but figure there must be a
better/easier way of doing it .
--
(stuckle and his lapdogs are forbidden from replying to this thread as i
dont actually want any help from them)
这篇关于重复的数组字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!