PHP echo() function is used to get the output of regular expression or print strings in PHP. It is an inbuilt function in PHP. The working of this function is the same as print() function but it is faster than print().
echo($str); or echo $str1.$str2.$strN;
$str, $str1, $str2 and $strN are PHP strings.
<?php $str="Welcome to Coding Tag."; echo($str); ?>
In the case of multiple strings we use this function without parenthesis.
?php $str1="Delhi is the capital of India."; $str2="It has so many tourist places"; echo $str1.$str2; ?>