note 30035 added to function.echo

From: Date: Tue, 04 Mar 2003 23:19:39 +0000
Subject: note 30035 added to function.echo
Groups: php.notes 
Request: Send a blank email to php-notes+get-44841@lists.php.net to get a copy of this message
Just a correction (for calin at ciao dot com) LF means line feed and is \n and \r is CR, or carriage return. defining CR as "\n" is flawed for this reason, the code should be written as follows: define ('LF', "\n"); echo LF, 'The code here', LF, 'looks more readable', LF, 'then just having everything', LF, 'in one line', LF, 'It seems also to be faster', LF, 'than concatenation', LF, 'You only need to pay attention', LF, 'to the last ; and , do not mix them.' ; -- http://www.php.net/manual/en/function.echo.php http://master.php.net/manage/user-notes.php?action=edit+30035 http://master.php.net/manage/user-notes.php?action=delete+30035 http://master.php.net/manage/user-notes.php?action=reject+30035

« previous php.notes (#44841) next »