According to the POST method uploads section of the PHP Manual, $_FILES[\'userfile\'][\'name\'] is the original name of the file on the client machine. Example
using basename() on a full path eg /path/mydir/file.txt, returns you file.txt. Its useful when you have a full path to parse and you just want to get the last part of the path.