```
echo $_SERVER['REQUEST_URI']."\n";
echo strrchr($_SERVER['REQUEST_URI'], '/');

```

`strrchr` returns the same adress as it was before, but i need all until last **/**.

Update:
`$_SERVER['REQUEST_URI'] = /users/dev/index.php`
i need `/users/dev/`