sections explode implode array_filter explode preg_replace str_replace

1
$sections = explode('|', implode('|', array_filter(explode('/', preg_replace('/\/+/', '/', str_replace('\\', '/', substr($_SERVER['REQUEST_URI'], 0, (strpos($_SERVER['REQUEST_URI'], '?') ? strpos($_SERVER['REQUEST_URI'], '?') : strlen($_SERVER['REQUEST_URI'])))))))));