I'm using an array_push
to add to an array, that of which how many times a card is there.
$array = array();
foreach($aiarray as $card) {
$cardss = card($card);
array_push($array, $cardss);
}
asort($array);
print_r($array);
This gives me what I need, but now how do I search the array and for say;
pseudo
if (*array contains > 2 of the same word) {
find out what word;
does the array contain more than one?;
}