Go to: Synopsis. Return value. MEL examples.
basename(string $path, string $suffix)
None
Variable Name | Variable Type | Description |
---|---|---|
$path | string | Path string to strip |
$suffix | string | Suffix to strip off |
string $path = "/usr/people/gamera/gamera.mel"; string $basename = basename( $path, ".mel" ); // Result: gamera // basename( $path, "" ); // Result: gamera.mel // string $ntPath = "C:/aw/godzilla/hello.c"; basename( $ntPath, ".c" ); // Result: hello //