realpath

PHP 4, PHP 5, PHP 7, PHP 8
realpath - Returns canonicalized absolute pathname
Manual
Code Examples

Example #1 realpath example

Result: /etc/passwd /tmp
PHP Version:

Example #2 realpath on Windows

Result: C:\WINDOWS\System32 C:\Program Files
PHP Version: