Demonstrating that the syntax of print is quite flexible : Print « Development « PHP






Demonstrating that the syntax of print is quite flexible


<?php
     $string = "will be printed.<br />";
   
     print "This string $string";
     print "This string " . $string;
     print("This string $string");
     print("This string " . $string);
?>
           
       








Related examples in the same category

1.Format our strings with line breaks to make our PHP code lines short
2.Variable interpolation
3.Use Print command to output string
4.A PHP Script Including HTML
5.Dynamically Setting and Accessing Variables