Easy Tutorial
❮ Php Variable Handling Functions Php Preg_Last_Error ❯

PHP realpath() Function



Definition and Usage

The realpath() function returns the absolute path.

This function removes all symbolic links (such as '/./', '/../', and extra '/') and returns the absolute pathname.

If it fails, the function returns FALSE.

Syntax

Parameter Description
path Required. Specifies the path to be checked.

Example

The above code will output:


❮ Php Variable Handling Functions Php Preg_Last_Error ❯