The echo language construct is not really a function, but people often think of it as a function. PHP echo is used to output data, usually to a web browser.
PHP echo examples
Below are a couple examples using echo to output some text with a few linebreaks.
<?php echo 'This is line 1 This is line 2 This is line 3'; ?>
See also: List of Content-types
Another way to add linebreaks is to use backslash "\" combined with n, which represents a linebreak in PHP – using this method also requires the use of double quotes instead of single quotes.
<?php echo "This is line 1\nThis is line 2\nThis is line 3"; ?>