Re: [PHP] ARRAY_PUSH with $key

2002-07-18 Thread Analysis & Solutions
On Fri, Jul 19, 2002 at 01:58:42AM +0300, Pekka Saarinen wrote: > > I think array_push gets you cleaner lookin code (subjective). It also > ensures you always add to end of the array - good for novices like > me. Array_push is also TWO times faster (academic difference in the speeds > of mode

Re: [PHP] ARRAY_PUSH with $key

2002-07-18 Thread Pekka Saarinen
At 7/18/2002, you wrote: >On Thu, Jul 18, 2002 at 03:40:58PM -0400, Joshua E Minnie wrote: > > Hey all, > > Does anybody know of a way to push an element onto an array with a > > specific key? What I am trying to do is create a dynamically created > > associative array. Here is a sample prin

Re: [PHP] ARRAY_PUSH with $key

2002-07-18 Thread Analysis & Solutions
On Thu, Jul 18, 2002 at 03:40:58PM -0400, Joshua E Minnie wrote: > Hey all, > Does anybody know of a way to push an element onto an array with a > specific key? What I am trying to do is create a dynamically created > associative array. Here is a sample print_r of what an array would look >

[PHP] ARRAY_PUSH with $key

2002-07-18 Thread Joshua E Minnie
Hey all, Does anybody know of a way to push an element onto an array with a specific key? What I am trying to do is create a dynamically created associative array. Here is a sample print_r of what an array would look like: Array ( [default] => css/default.css [forms] => css/forms.cs