print
Output a string
Description
intprint
stringarg
Outputs arg. Returns 1,
always.
print is not actually a real function (it is a
language construct) so you are not required to use parentheses
with its argument list.
print examples
"foo");
print "this is {$bar['value']} !"; // this is foo !
// Using single quotes will print the variable name, not the value
print 'foo is $foo'; // foo is $foo
// If you are not using any other characters, you can just print variables
print $foo; // foobar
print <<
]]>
For a short discussion about the differences between
print and echo, see this FAQTs
Knowledge Base Article: &url.echo-print;
¬e.language-construct;
See also echo, printf,
and flush.