Revert functions PHP