31 pers. connectées au site
Manuel Pear
System_WinDrives::getDriveName()
System_WinDrives::getDriveName() -- Returns the user-defined name for a drive
Synopsis
- <?php
- require_once 'System/WinDrives.php
- ?>
string System_WinDrives::getDriveName (string $strDrive)
Description
Returns the user-given name for the given drive. The function does not work on PHP5 and returns an empty string ''.
Paramètres
- chaîne de caractères $strDrive
-
The drive path, whose name shall be read.
Valeur retournée
chaîne de caractères - The drive label
Exemple
Exemple 63-1. Using myFunction()
- <?php
- require_once 'System/WinDrives.php';
-
- $swd = new System_WinDrives();
- echo $swd->getDriveName('C:\\');
-
- ?>
Output:
|
Remonter