(PHP 4, PHP 5, PHP 7, PHP 8)
linkinfo — 獲取一個連接的信息
$path): int獲取一個連接的信息。
   本函數(shù)用來驗證一個連接(由 path
   所指向的)是否確實存在(使用  stat.h 中的 S_ISLNK
   宏同樣的方法)。
  
path連接的路徑。
    linkinfo() 返回 lstat
   系統(tǒng)調(diào)用所返回的 UNIX C stat 結(jié)構(gòu)中的 st_dev
   字段。 如果出錯則返回 0 或 false。
  
| 版本 | 說明 | 
|---|---|
| 5.3.0 | Windows 平臺上開始可用(Vista、Server 2008 或更高版本)。 | 
示例 #1 linkinfo() 例子
<?php
echo linkinfo('/vmlinuz'); // 835
?>