php tutorial - PHP Print - php programming - learn php - php code - php script



  • Print is also a statement being used to display the output as like echo .
  • The print() function outputs one or more strings.
  • It can be used with parentheses print( ) or without parentheses print.
  • Print statement doesn’t pass multiple arguments.
  • Print statement constantly returns 1.
  • It is slower than echo .

php developer Syntax :

<?php
    print "string";
?>
click below button to copy the code. php tutorial - team

Strings :

  • A string is a series of characters, where a character is the same as a byte.
  • This means that PHP only supports a 256-character set, and hence does not offer native Unicode support.


php 7 Sample Code : sample php program

<!DOCTYPE html>
<html>
    <head>
        <title>Print</title>
    </head>
    <body>
        <?php
            print "Welcome to Wikitechy World..!!";
        ?>
    </body>
</html>
click below button to copy the code. php tutorial - team

php program Code Explanation :

Code Explanation for Print In PHP

  1. Here the print statement” Welcome to Wikitechy World...!!” will be printed as output in the browser.

php coding Sample Output :

output for Print In PHP

  1. Here the print statement “Welcome to Wikitechy World...!!” is shown in the browser window.


Related Searches to php print