Display Keyword in PHP With Example

Display Keyword in PHP With Example. Using this keyword we can print any element in PHP program. You can use the print statement with or without parentheses: print or print (). The functions of echo and print are nearly identical. Both are used to display info on the screen. One parameter can be passed to print. Echo is a fraction of a second faster than print.

<?php
print "<h4> Welcome to inlarn</h4>";
print "Php programming";
?>

 

Output:

Welcome to inlarn

Php programming