Setting and modifying items

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

Introduced in Version 2.0


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