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
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
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
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
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??
5 matches
Mail list logo