echo

echo -- Output one or more strings

Description

echo(string arg1, string [argn]... );

Outputs all parameters.

echo() is not actually a function (it is a language construct) so you are not required to use parantheses with it.

Example 1. echo example

echo "Hello World";

echo "This spans
multiple lines. The newlines will be 
output as well";

echo "This spans\nmultiple lines. The newlines will be\noutput as well.";
	  

Note: In fact, if you want to pass more than one parameter to echo, you must not enclose the parameters within parentheses.

See also: print(), printf(), and flush().