- substr: documentation ( source)
- strpos: documentation ( source)
- explode: documentation ( source)
<?php
$path_info =
$_SERVER['PATH_INFO']
// If PATH_INFO isn't enabled, strip everything up to and including 'index.php/' off the full URI
?: substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], 'index.php') + 10);
$uri_args = explode('/', $path_info);