Write multi-line text to the output in PHP

Description

The following code shows how to write multi-line text to the output.

Example


//from ww w . ja  va 2s .c  o m
<?php
    echo "This text
    spans multiple
    lines.";
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




Environment
Error
Hash
Include
Locale
Math
Network
Output
Reflection
PHP Regular Expressions