// Other variables $MAX_FILENAME_LENGTH = 260; $file_name = $_FILES[$upload_name][\'name\']; //echo \"testing-\".$file_name.\"\"; //$file_name = strtolower
First, you will have to store the value in a variable like this
$value = explode("/", $string);
Then you can use the end function to get the last index from an array like this
echo end($value);
I hope it will work for you.