(PHP 5 >= 5.2.2, PHP 7)
Gets absolute path to file
public string SplFileInfo::getRealPath ( void )
This method expands all symbolic links, resolves relative references and returns the real path to the file.
Returns:
Returns the path to the file, or FALSE if the file does not exist.
Examples:
SplFileInfo::getRealPath() example