Parameters
$fileSpec - The file specification.
Returns
The file name.
Syntax
PHP |
public static function GetFileName(string $fileSpec) : string
|
Gets the FileName from the file spec.
Remarks
Parses from the last "/" to the following ".".
Includes to the end of the string if the "." is not found.
Example
PHP |
include_once "LJCRoot.php";
$prefix = RelativePrefix();
include_once "$prefix/LJCPHPCommon/LJCCollectionLib.php";
// $text = "File"
$text = LJCCommon::GetFileName("../Folder/File.txt");
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.