<?php $uri = "/route/666"; if (preg_match("{^/route/(\d+)$}", $uri, $m)) { [1 => $route] = $m; echo $route, PHP_EOL; }
You have javascript disabled. You will not be able to edit any code.