require_once 'System/WinDrives.php';
string System_WinDrives::getDriveName (string $strDrive)
string System_WinDrives::getDriveName
Returns the user-given name for the given drive. The function does not work on PHP5 and returns an empty string ''.
The drive path, whose name shall be read.
string - The drive label
Example 56-1. Using myFunction()
<?php require_once 'System/WinDrives.php'; $swd = new System_WinDrives(); echo $swd->getDriveName('C:\\'); ?>
Output:
Windrive