PHP Program to print text using print command
<?php
/*print string*/
print "Hello world\n";
/*print variable values*/
$text = "Sample text";
$lucky_number = 100;
print "</br>";
print "Value of text is: " . $text . " Lucky number is: " . $lucky_number . "\n";
?>
Output
Hello world
Value of text is: Sample text Lucky number is: 100
