--TEST-- Test fgetcsv() : usage variations - with default enclosure & length less than line size --FILE-- --EXPECT-- *** Testing fgetcsv() : with default enclosure & length less than line size *** -- Testing fgetcsv() with file opened using r mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using rb mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using rt mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using r+ mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using r+b mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using r+t mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using a+ mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using a+b mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using a+t mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using w+ mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using w+b mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using w+t mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using x+ mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using x+b mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using x+t mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using r mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using rb mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using rt mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using r+ mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using r+b mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using r+t mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using a+ mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using a+b mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using a+t mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using w+ mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using w+b mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using w+t mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using x+ mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using x+b mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using x+t mode -- array(2) { [0]=> string(5) "water" [1]=> string(3) "fru" } int(9) bool(false) array(1) { [0]=> string(2) "it" } int(12) bool(false) -- Testing fgetcsv() with file opened using r mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using rb mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using rt mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using r+ mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using r+b mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using r+t mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using a+ mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using a+b mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using a+t mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using w+ mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using w+b mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using w+t mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using x+ mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using x+b mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using x+t mode -- array(2) { [0]=> string(5) "water" [1]=> string(5) "fruit" } int(16) bool(false) array(8) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(4) "line" [3]=> string(2) "of" [4]=> string(4) "text" [5]=> string(7) "without" [6]=> string(3) "csv" [7]=> string(6) "fields" } int(56) bool(false) -- Testing fgetcsv() with file opened using r mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using rb mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using rt mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using r+ mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using r+b mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using r+t mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using a+ mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using a+b mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using a+t mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using w+ mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using w+b mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using w+t mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using x+ mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using x+b mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using x+t mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(3) "air" } int(20) bool(false) array(1) { [0]=> string(39) "This is line of text without csv fields" } int(60) bool(false) -- Testing fgetcsv() with file opened using r mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rb mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using rt mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+ mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+b mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using r+t mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+ mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+b mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using a+t mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+ mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+b mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using w+t mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+ mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+b mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) -- Testing fgetcsv() with file opened using x+t mode -- array(3) { [0]=> string(5) "water" [1]=> string(5) "fruit" [2]=> string(43) "" This is line of text without csv fields " } int(61) bool(true) bool(false) int(61) bool(true) Done