我正在将图像的名称上传到数据库!
问题是名称在数据库中,名称前有一个空格!
问题出在哪里?
$original_name = strtolower(trim($arquivo['name']));
$caracteres = array("ç","~","^","]","[","{","}",";",":","´",",",">",
"<","-","/","|","@","$","%","ã","â","á","à","é",
"è","ó","§","ò","+","=","*","&","(",")","!","#","?",
"`","ã"," ","©","£");
$original_name = str_replace(' ', '', $original_name);
$final_name = str_replace($caracteres,"",$original_name);