<?php strtolower(string $string): string
<?php public function match(array $methods, string $uri, $handler): RouteInterface { foreach ($methods as $method) { $method = strtolower($method); $route = new TheRoute($this); $route->name(strtolower($method)); Route::push($route);
<?php foreach ($methods as $method) { $method = strtolower($method); $route = new TheRoute($this); $route->name(strtolower($method)); Route::push($route); $route->$method($uri, $handler); }
<?php public function any(array $paths, string $method, $handler): RouteInterface { foreach ($paths as $path) { $method = strtolower($method); $route = new TheRoute($this); Route::push($route); $route->$method($path, $handler);
<?php { foreach ($methods as $method) { foreach ($paths as $path){ $method = strtolower($method); $route = new TheRoute($this); Route::push($route); $route->$method($path, $handler);