I have just put information from a text into an array.
$file = "res_tlb10002908_statuskodede_ny.txt";
$handle = fopen($file,"r");
while(!feof($handle)){
$line=fgets($handle);
$firma = explode("\t", $line);
This array the include 19 fields for each row.
The last row is a letter concerning what type the company is, it can be all kind of single letters.
When I print:
echo "$firma[19] <br />";
I get the correct value, most often S or P.
But when I do:
if($firma[19]=="S")
echo "$firma[19] <br />";
else
echo " is not S<br />";
At this last example it does not find any occurences, they all print "is not S"
Why is this so?
Please help.