replace(int $offset, int $length, PropertyPathInterface|string $path, int $pathOffset, int $pathLength)
Replaces a sub-path by a different (sub-) path.
replace(int $offset, int $length, PropertyPathInterface|string $path, int $pathOffset, int $pathLength)
Replaces a sub-path by a different (sub-) path.
int | $offset | The offset at which to replace |
int | $length | The length of the piece to replace |
PropertyPathInterface|string | $path | The path to insert |
int | $pathOffset | The offset where the inserted piece starts in $path. |
int | $pathLength | The length of the inserted piece If 0, the full path is inserted. |
OutOfBoundsException | If the offset is invalid |
Designed by : w10schools
service@w10schools.com
Please login to continue.