previousSystem_WinDrives::getDriveList() (Previous) (Next) System_WinDrives::getDrivesInformation()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

System_WinDrives::getDriveName()

System_WinDrives::getDriveName() – Returns the user-defined name for a drive

Synopsis

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 ''.

Parameter

string $strDrive

The drive path, whose name shall be read.

Return value

string - The drive label

Example

Using myFunction()

<?php
require_once 'System/WinDrives.php';

$swd = new System_WinDrives();
echo 
$swd->getDriveName('C:\\');
?>

Output:

    
Windrive
    
previousSystem_WinDrives::getDriveList() (Previous) (Next) System_WinDrives::getDrivesInformation()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.