For example:
$file = fopen(\"File.txt\", \"r\"); $filename = $file->basename;
if there was a method like basename for file objects (file poi
No, there is not.
By the way, in which scenario is this thing needed?