Re: array of array



Bob Bedford wrote:
> array_push($bigarray["Y"],$value5);
> but array_push doesn't manage it.

Try $big_array['Y'][] = $value5;
In the manual it says "has the same effect" but maybe the implementation
is different? I don't know. It also says:

"Note: If you use array_push() to add one element to the array it's better
to use $array[] = because in that way there is no overhead of calling a
function."

--
E. Dronkert
.



Relevant Pages

  • Re: Assembly.Load() cause BadImageFormatException
    ... There's no guarantee that a single call to Read will fill the byte ... array. ... You should check the return value and if necessary keep calling ... Prev by Date: ...
    (microsoft.public.dotnet.framework)
  • Re: Array
    ... >> Can you help me sort my array on salary ... > E. Dronkert ... Prev by Date: ...
    (comp.lang.php)
  • Re: Array
    ... > Can you help me sort my array on salary ... E. Dronkert ... Prev by Date: ...
    (comp.lang.php)
  • Re: A problem with "
    ... > But I still get this result in printout: ... > Array() ... E. Dronkert ... Prev by Date: ...
    (comp.lang.php)
  • Re: A puzzle about leading zeros
    ... $b = array(); ... Or your own implementation of sprintf using http://php.net/substr ... E. Dronkert ... Prev by Date: ...
    (comp.lang.php)