91-9990449935 0120-4256464 |
PHP PrintLike 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. The syntax of PHP print is given below: PHP print statement can be used to print string, multi line strings, escaping characters, variable, array etc. PHP print: printing stringFile: print1.phpOutput:
Hello by PHP print Hello by PHP print()
PHP print: printing multi line stringFile: print2.phpOutput:
Hello by PHP print this is multi line text printed by PHP print statement
PHP print: printing escaping charactersFile: print3.phpOutput:
Hello escape "sequence" characters by PHP print
PHP print: printing variable valueFile: print4.phpOutput:
Message is: Hello print() in PHP
Next TopicPHP Variables
|