10-30-2009, 11:59 AM
|
#4 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,239
Thanks: 3
|
Quote:
Originally Posted by Dave
The file contains a name field, i.e., "Doe, John" (with comma).
|
Maybe I missed it, but what's the problem? CSV fields can contain commas if they are enclosed in quotes (or some other defined character).
PHP Code:
print_r(str_getcsv('foo,"bar,baz"'));
/*
Array
(
[0] => foo
[1] => bar,baz
)
*/
__________________
salathe@php.net
|
|
|
|