add('/about', function() { echo 'This is the about page'; }); $router->add('/contact', 'ContactController@index'); // Match requested URL $router->match(); ?>In this example, we define two routes: one for the about page and another for the contact page. The first route is defined using an anonymous function while the second route is defined by specifying the controller and the action to execute. After defining the routes, we call the match method of the router object to match the requested URL and execute the corresponding code block. The PHP Router match example shows that this method is part of a package library for routing in PHP applications. One such popular package library is the PHP Router library, which provides a simple and easy-to-use interface for defining and matching routes in PHP applications.