string System_WinDrives::getDriveName (
string $strDrive
)
そのドライブに対してユーザが設定した名前を返します。
この関数は PHP5 では動作せず、空の文字列
''
を返します。
$strDrive
名前を取得したいドライブのパス。
string - ドライブのラベルを返します。
myFunction() の使用法
<?php
require_once 'System/WinDrives.php';
$swd = new System_WinDrives();
echo $swd->getDriveName('C:\\');
?>
出力:
Windrive