duplicate values within an array?
Posted: Sun Jul 24, 2005 4:11 pm
how can i count how many times a key is found within an array?
ie :
$array = ('bob','sam','sally','bob');
I want to be able to say bob has appeared within this array twice. is that possible? if so, how? thanks.
ie :
$array = ('bob','sam','sally','bob');
I want to be able to say bob has appeared within this array twice. is that possible? if so, how? thanks.