Thanks. Didn't see that myself.
Thanks for the help
Chris
At 10:28 AM 1/18/01, [EMAIL PROTECTED] wrote:
>Addressed to: CDitty <[EMAIL PROTECTED]>
> [EMAIL PROTECTED]
>
>** Reply to note from CDitty <[EMAIL PROTECTED]> Thu, 18 Jan 2001
>06:58:22 -0600
>
>I see someone else has an
c: <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 10:40 AM
Subject: Re: [PHP] Array help needed
> I wouldn't call it a php standard.
>
> I personally feel that readability is far more important than following
> anything that 'appears' to be standard. I use a fo
I wouldn't call it a php standard.
I personally feel that readability is far more important than following
anything that 'appears' to be standard. I use a format such as this for
everything I name: If one word, lowercase, if more than one word:
$userSelectedDate or displayCalendar(). So basica
Addressed to: CDitty <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from CDitty <[EMAIL PROTECTED]> Thu, 18 Jan 2001 06:58:22 -0600
I see someone else has another suggestion that might be better, using
array_count(). You learn something new every day, which is why I watch
Addressed to: CDitty <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from CDitty <[EMAIL PROTECTED]> Thu, 18 Jan 2001 05:40:13 -0600
>
> Hello all,
>
> I have 6 numbers that are in an array. I need to know how many times
> each number shows up in that array.
>
> ex Numbe
array_keys($count) as $s)
>{
>echo "Number: " . $s. " count: " . $count[$s] . "";
>}
>
>
>
>
> > -Opprinnelig melding-
> > Fra: CDitty [mailto:[EMAIL PROTECTED]]
> > Sendt: 18. januar 2001 12:40
> > Til: [EMAIL PROTECTE
TED]]
> Sendt: 18. januar 2001 12:40
> Til: [EMAIL PROTECTED]
> Emne: [PHP] Array help needed
>
>
> Hello all,
>
> I have 6 numbers that are in an array. I need to know how
> many times each
> number shows up in that array.
>
> ex
> Numbers: 1,3,5,1
Hello all,
I have 6 numbers that are in an array. I need to know how many times each
number shows up in that array.
ex
Numbers: 1,3,5,1,4,1
Output needed: (Not necessarily like this)
1 3
3 1
5 1
4 1
Can anyone help me with this? I looked in the manual, but couldn't find
anything that
8 matches
Mail list logo