How can the file name of an uploaded file be retrieved in PHP?
When a file is uploaded in PHP, the file name can be retrieved using the `$_FILES` superglobal array. The file name is stored in the 'name' key of the array element corresponding to the uploaded file. To retrieve the file name, you can access `$_FILES['file_input_name']['name']`, where 'file_input_name' is the name attribute of the file input field in the HTML form.
$fileName = $_FILES['file_input_name']['name'];
echo "Uploaded file name: " . $fileName;