定义和用法

realpath() 函数返回绝对路径

语法

realpath(path)

参数解析

参数描述
path必需。规定要检查的路径。

示例

<?php
    echo realpath("index.php");
?>

输出

   E:\wamp\www\demo\index.php

realpath() 函数_realpath