Php Print

Like PHP echo, PHP print is a language construct, so you don't need to use parenthesis with the argument list. Unlike echo, it always returns 1.

printing string

Example :-

Result

Hello by PHP print Hello by PHP print()

printing multi line string

Example :-

Result

Hello by PHP print this is multi line text printed by PHP print statement

printing variable value

Example

Result

Message is: Hello print() in PHP