Re: [PHP] preg_split - spliting string

2004-03-07 Thread Bambero
Burhan Khalid wrote: Bambero wrote: Hi I need to split a string by the: , (comma) separator, but when the comma is beetwen "" it should be skipped. Ex: test ts sasa, assas "sasa,asaas" dasdas, da => test ts sasa => assas "sasa,asaas" dasdas => da If this is a CSV file, you can try fgetcsv. F

Re: [PHP] preg_split - spliting string

2004-03-06 Thread Burhan Khalid
Bambero wrote: Hi I need to split a string by the: , (comma) separator, but when the comma is beetwen "" it should be skipped. Ex: test ts sasa, assas "sasa,asaas" dasdas, da => test ts sasa => assas "sasa,asaas" dasdas => da If this is a CSV file, you can try fgetcsv. From http://www.php.net/fg

[PHP] preg_split - spliting string

2004-03-06 Thread Bambero
Hi I need to split a string by the: , (comma) separator, but when the comma is beetwen "" it should be skipped. Ex: test ts sasa, assas "sasa,asaas" dasdas, da => test ts sasa => assas "sasa,asaas" dasdas => da Thx Bambero -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h