I knew about that. But what if you don't know the key? Can you access the values by numbers, i.e.:

$array[2] = 'new value';

Sorry for the confusion.

Raju_Gautam
—
2008-11-19T17:36:01Z —
#4

What you mean if you don't know the key of the element of which you want to change the value?? How that can happen? If your array is all associative then you need to use the key itself. You cannot go with numbers.