The print() function outputs one or more strings.
int print ( string $arg )
Outputs arg.
print is not actually a real function (it is a language construct) so you are not required to use parentheses with its argument list.
The major differences to echo are that print only accepts a single argument and always returns 1.
Parameter | Description |
---|---|
arg | The input data. |
Returns 1, always.