Yes, of course, but the thing is that the order was important. I wanted to
put in a new value/pair at the *start* of my array, so I thougth using
array_unshift(), but that did not work or at leas I did not find how.
With the $arr[$key]=$val assignment you add at the *end* of your array $arr.
Thanks for your fast response

"Cc Zona" <[EMAIL PROTECTED]> wrote in message
> In article <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED] (Marc Logghe) wrote:
> > So it is really easy to *remove* a key-value pair, but how do you put
one in ?
> $arr[$key]=$val;
> --
> CC

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to