php 42 this function replaces the child oldnode with the passed new node if the new node is already a child it will not be added a second time if the old node cannot be found the function returns false if the replacement succeds the old node is returned 