I am looking to get the substring from the end of a line of text, say
$text = "bob/hello/myfile.zip";
I want to be able to obtain the file name, which i guess would involve getting everything after the last slash as a substring, can anyone help me how to do this is PHP? A simple function like
$fileName = getFileName($text);