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.
Thank
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 (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
2 matches
Mail list logo