on("event", function ($event) { var_dump($event); }); $in->addWatch(__DIR__, IN_CREATE|IN_DELETE); echo "Create and delete a file in the current directory and observe the output.\n";