PHP print() function is used to output one or more strings. It is an inbuilt function of PHP. The working of the print() is the same as the working of echo() function but it is slower than echo() function.
The return type of this function is a string.
In case of more than one string, use this function without parenthesis.
$string, $string1 and $string2 are PHP strings
<?php $string="Welcome to Coding Tag"; print($string); ?>
<?php $string1="Welcome to "; $string2="Coding Tag"; print $string1.$string2; ?>