replaceByIndex(int $offset, string $name = null)
Replaces a property element by an index element.
Parameters int $offset The offset at which to replace string $name The new name of the element. Optional Exceptions OutOfBoundsException If the offset is invalid