|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-08-15 07:30 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 21:00:02 2025 UTC |
<? $test = fopen("test1.txt", "r") or die("unable to open file"); while (!feof($test)) { $line = fgets($test, 1024); $line = nl2br($line); print $line; } ?> contents of file test1.txt: test test test In HTML: test<br /> test<br /> test<br /> That is to say <br /> instead of <br>