For example, how do I get Output.map
from
F:\\Program Files\\SSH Communications Security\\SSH Secure Shell\\Output.map
The basename function should give you what you want:
Given a string containing a path to a file, this function will return the base name of the file.
For instance, quoting the manual's page:
Or, in your case:
$full = 'F:\Program Files\SSH Communications Security\SSH Secure Shell\Output.map';
var_dump(basename($full));
You'll get:
string(10) "Output.map"