I am trying to get the title of a file into a string WITHOUT the extension. I understand how
end() works... but i want the FRONT of the string removed. I can't find something in the PHP manual that directs me into the right direction. ANY help will be appreciated.
$fileName = $_FILES["video"]["name"]; The file name $fileType = explode('.',$fileName); $fileType = end($fileType); $origFileName = "<(??????)>"
found my problem. added:
$fileOrigName = basename($fileName,$fileType);
$fileOrigName = substr($fileOrigName, 0, -1);
TY for all your comments and help :)