Print multiline text to the output in PHP

Description

The following code shows how to print multiline text to the output.

Example


//from  w  w w.  ja  va  2 s . c  om
<?php
    print "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