Free download web templates, books and more. Free php projects ,games and apps. GTA mods and more

Breaking

Php print statement

PHP Print statement

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.
The syntax of PHP print is given below:
  1. int print(string $arg)  
PHP print statement can be used to print string, multi line strings, escaping characters, variable, array etc.

PHP print: printing string

File: print1.php
  1. <?php  
  2. print "Hello by PHP print ";  
  3. print ("Hello by PHP print()");  
  4. ?>  
Output:Hello by PHP print Hello by PHP print()