Monk3h Posted April 20, 2008 Share Posted April 20, 2008 I want to make an anti multi tool to check all the IP Adresses in $players[ip] against all the IP adreses in $players[ip]. Then have all the players with the same IP displayed. How would i do this? Link to comment https://forums.phpfreaks.com/topic/102043-how-to-check-for-multis/ Share on other sites More sharing options...
p2grace Posted April 20, 2008 Share Posted April 20, 2008 Array count values would show you how many of each is in the array. http://www.php.net/function.array-count-values Link to comment https://forums.phpfreaks.com/topic/102043-how-to-check-for-multis/#findComment-522217 Share on other sites More sharing options...
dptr1988 Posted April 20, 2008 Share Posted April 20, 2008 Try this: <?php $no_multi = array_unique($players); $multi = array_diff($players, $no_multi); ?> http://us2.php.net/manual/en/function.array-unique.php http://us2.php.net/manual/en/function.array-diff.php Link to comment https://forums.phpfreaks.com/topic/102043-how-to-check-for-multis/#findComment-522220 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.