Image

Imagedeltoideus wrote in Imagephp

change array key

Stupid question again...

I have an array:

$my_array = array('key_i' => 'val_i', 'key_i' => 'val_i', ..., 'key_i' => 'val_i', ... );

where i = 0, 1, 2, 3, 4, 5, ..., ...

How could i change key value from 'key_i' to 'my_key_value'?