标签: php
以下是代码:
$content = file($_FILES['tmp_name']); // This is a TXT file uploaded echo json_encode($content);
当tmp_name文件内容为cancao时,我获得了["cancao"]但如果tmp_name文件内容为canção,则我获得了null。< / p>
tmp_name
cancao
["cancao"]
canção
null