PageArray/WireArray


Setting and modifying items

$a->replace($itemA, $itemB)

Introduced in Version 2.0

Description

Replace one item with the other. If both items are already present, they will change places. If one item is not already present, it will replace the one that is. If neither item is present, both will be added at the end.

Post Comment