Re: [PHP] Creating associative array

2003-02-05 Thread Ernest E Vogelsinger
Don't use array_push - simply set the value: $image_array[$file_name] = $image_url; - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 1:28

Re: [PHP] Creating associative array

2003-02-05 Thread Jason Wong
On Wednesday 05 February 2003 20:51, Chris Hayes wrote: > At 13:28 5-2-03, you wrote: > >Try: > >$image_array = array(); > >$image_array[$file_name] = $image_url; > > > >PHP wrote: > >>I am trying to create associative array in a while loop.. > >> > >>$image_array = array(); $image_array = > >>arr

Re: [PHP] Creating associative array

2003-02-05 Thread Chris Hayes
At 13:28 5-2-03, you wrote: Try: $image_array = array(); $image_array[$file_name] = $image_url; PHP wrote: I am trying to create associative array in a while loop.. $image_array = array(); $image_array = array_push("$file_name"=>"$image_url"); i agree with the suggestion, but maybe (this may

Re: [PHP] Creating associative array

2003-02-05 Thread Leif K-Brooks
Try: $image_array = array(); $image_array[$file_name] = $image_url; PHP wrote: I am trying to create associative array in a while loop.. $image_array = array(); $image_array = array_push("$file_name"=>"$image_url"); what i am doing wrong?? -- The above message is encrypted with dou

[PHP] Creating associative array

2003-02-05 Thread PHP
I am trying to create associative array in a while loop.. $image_array = array(); $image_array = array_push("$file_name"=>"$image_url"); what i am doing wrong??