an" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 10, 2004 2:45 PM
Subject: Re: [PHP] array_merge_recursive
> foreach ($animal_counts as $animal => $total) {
> echo $animal. ':' .$total. '';
> }
>
>
> On Fri, 10 Dec 2
$animal . ' : ' . $total
> would output:
>
> :
> :
>
> etc. thanks.
>
>
>
> - Original Message -
> From: "Sebastian" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, December 10, 2004 12:24 PM
> Subject:
actually, what i mean is i need to get the animal name as well..
ie:
echo $animal . ' : ' . $total
would output:
:
:
etc. thanks.
- Original Message -
From: "Sebastian" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December
Hi.
I am using this array_merge_recursive to merge two arrays, the array looks
like this:
Array
(
[0] => Array
(
[animal] => Dogs
[total] => 5
)
[1] => Array
(
[animal] => Cats
[total] => 3
)
[2] => Arr
Sebastian wrote:
> Hi.
>
> I am using this array_merge_recursive to merge two arrays, the array looks
> like this:
>
> Array
> (
> [0] => Array
> (
> [animal] => Dogs
> [total] => 5
>
> )
>
> [1] => Array
> (
> [animal] => Cats
les before
using the function.. or rolling your own merger function. :-\
-Kevin
- Original Message -
From: "Michiel van Wessem" <[EMAIL PROTECTED]>
To: "Kevin Stone" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, September 20, 2002 10:52 AM
Su
>- Original Message -
>From: "Michiel van Wessem" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, September 20, 2002 10:14 AM
>Subject: [PHP] array_merge_recursive
>
>
> > Hello!
> >
> > I'm fairly new to PHP and a
[1]. Is this not what you wanted?
-Kevin
- Original Message -
From: "Michiel van Wessem" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 20, 2002 10:14 AM
Subject: [PHP] array_merge_recursive
> Hello!
>
> I'm fairly new to PHP and
Hello!
I'm fairly new to PHP and absolutely new to this mailing list.
I subscribed and I'm writing because I observed some strange behavior with
array_merge_recursive(). I'm using PHP version 4.1.2. Please look at the
following code:
$a = array('k' => array('a1'));
$b = array('k' => arr
9 matches
Mail list logo