Reputation: 505
The file I'm using to read has a lot of tabs and when I echo using nlb12, it doesn't output the tab space. Does anyone know if there's a way to keep the tab space when you're outputting file contents?
Upvotes: 0
Views: 66
Reputation: 4528
You want to show the file in a browser?
Then you have to use <pre><?php echo $line;?></pre>
Upvotes: 0
Reputation: 28795
Output it in <pre>
tabs
echo "<pre>" . nl2br($content) . "</pre>";
Upvotes: 0