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. From

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/fgetcsv