Implement ucl_array_replace_index()
Overwrite the indicated array index with a new value, keeping its position in the array