Hi guys,
a quick question.Im using explode to read the first line of a txt file (this lines contains the headers), and i get the array with all fields indexed in an array.
while searching the result array, everything mtches except for the last field.
here is an illustrated example:
field1 field2 field3 field4 field5
xx cc vv bb nn
$fileHeader = explode("\t", fgets($fileOpen));
ill get an array
[0] = "xx"
[1] = "cc"
[2] = "vv"
[3] = "bb"
[4] = "nn"
if i use in_array("xx", $fileHeader ) its found
if i use in_array("nn", $fileHeader ) its NOT found
i thought it might be of line break...but still not working..
any help is appreciated ..
thanks