add(); $event->clear(); // clears the event ?>In this example, we create a new event base and event object. We then add the event to the event base using the add method. Finally, we call the clear method to remove the event from the event base. The package library for PHP Event clear is the libevent extension for PHP.