What is the correct syntax for the move_uploaded_file function in PHP?

The move_uploaded_file function in PHP is used to move an uploaded file to a new location on the server. The correct syntax for the function is `move_uploaded_file($file_tmp_name, $new_location)`. The first parameter is the temporary file path of the uploaded file, and the second parameter is the new location where the file should be moved to.

if(isset($_FILES['file'])){
    $file_tmp_name = $_FILES['file']['tmp_name'];
    $new_location = 'uploads/' . $_FILES['file']['name'];
    
    if(move_uploaded_file($file_tmp_name, $new_location)){
        echo "File moved successfully.";
    } else {
        echo "Error moving file.";
    }
}