0
Title,"First name","Middle name","Last name","address"
Mr.,"prince","M","Kachhadiya","A-42,AdarshNagar-2
c.g Road,
"
地址字段中有像值「A-42,AdarshNagar-2 ChhpraBhatha道,」這個值之間都存在和逗號(,)CSV文件的默認字段分隔符是逗號( ,所以它會假設爲A-42和AdarshNagar-2 cg Road作爲不同的字段值。我如何解決它?諾基亞CSV文件導入問題
我的PHP代碼:
while (($data = fgetcsv($handle, 0, ",")) !== FALSE) {
// Code for parse csv data
}
您的測試對我來說工作正常。逗號在一個帶引號的字符串中,所以它不應該是一個問題。 – Travesty3 2013-03-15 13:00:52