sepoto Posted October 21, 2010 Share Posted October 21, 2010 They are not working. Do I need to specify Unicode? They do not print or find properly either. Thanks!while($line=fgets($fh)){ $eachline[$entries] = $line; $entries++;}$startatline = 0;while($startatline <= $entries){ $findtab = strpos($eachline[$startatline], "\t" ); $barname=substr($eachline[$startatline], 0, $findtab-1); $findcr = strpos($eachline[$startatline], "\r" ); $baraddress=substr($eachline[$startatline], $findtab, $findcr-1); echo $barname; echo $baraddress; echo '\r'; echo '\n'; $startatline++;} Link to comment Share on other sites More sharing options...
trevelluk Posted October 21, 2010 Share Posted October 21, 2010 echo '\r';echo '\n';Characters like this will only be interpreted inside double quoted strings. Try changing this to:echo "\r";echo "\n"; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.