dirname

PHP 4, PHP 5, PHP 7, PHP 8
dirname - Returns a parent directory's path
Manual
Code Examples

Example #1 dirname example

Result: /etc / (or \ on Windows) . C:\ /usr
PHP Version: