Tag Archives: carriage return

Echo New Line / Carriage Return In PHP Tip

In order to echo a new line or carriage return in PHP, the code (\n) must be in double quotes. Wrong Code: <?php echo ‘Hello \n World’;?> Correct Code: <?php echo “Hello \n World”;?> or <?php echo ‘Hello’.”\n”.’World’;?>

Posted in Development | Tagged , , | Leave a comment