PHP echo() function
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().
This function can be used without parenthesis in the case to outputs more than one strings.
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; ?>
Waiting for your comments