proggybilly
Programmer
I am using ereg_replace to remove spaces from file names using this line of code:
I also want to remove underscores and hyphens from filenames such as My_file-20100406.doc
I am unfamiliar with using ereg_replace beyond a single option, could someone please point me correctly towards removing spaces, underscores and hyphens please?
Code:
$target = ereg_replace(" ","","/tmp/".$_FILES['upload1']['name']);
I also want to remove underscores and hyphens from filenames such as My_file-20100406.doc
I am unfamiliar with using ereg_replace beyond a single option, could someone please point me correctly towards removing spaces, underscores and hyphens please?