Skip to content

Instantly share code, notes, and snippets.

@derekr
Created March 11, 2009 16:27
Show Gist options
  • Save derekr/77548 to your computer and use it in GitHub Desktop.
Save derekr/77548 to your computer and use it in GitHub Desktop.
array
0 => string 'Data field one' (length=14)
1 => string 'Data field two' (length=14)
2 => string 'data field three' (length=16)
array
0 => string 'Escaped data field one' (length=22)
1 => string 'Escaped data field two' (length=22)
2 => string 'data field three' (length=16)
array
0 => string 'Data field one' (length=14)
1 => string 'Data field "embedded quote" two' (length=31)
2 => string 'data field three' (length=16)
array
0 => string 'Escaped data field one' (length=22)
1 => string 'Escaped data field "escaped quote" two' (length=38)
2 => string 'Escaped data field three' (length=24)
/*---------------------------------------------------------------------*/
// fgetcsv
array
0 => string 'Data field one' (length=14)
1 => string 'Data field two' (length=14)
2 => string 'data field three' (length=16)
array
0 => string 'Escaped data field one' (length=22)
1 => string 'Escaped data field two' (length=22)
2 => string 'data field three' (length=16)
array
0 => string 'Data field one' (length=14)
1 => string 'Data field "embedded quote" two' (length=31)
2 => string 'data field three' (length=16)
array
0 => string 'Escaped data field one' (length=22)
1 => string 'Escaped data field "escaped quote" two' (length=38)
2 => string 'Escaped data field three' (length=24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment