echo "Hello,","my "," name is ", "Mike";
echo statement is little faster compaired to print. echo and print statements are not fuctions, they are language constructs, so can be used with or without parentheses (). |
<?php echo "Hello"," there!","<br>"; echo ("My name is Mike.<br>)"; echo "I love <b>PHP!</b>"; ?>
Output
Hello there! My name is Mike. I love PHP!
<?php print "Hello there!<br>"; print ("My name is Mike.<br>)"; print "I love <b>PHP!</b>"; ?>
Output
Hello there! My name is Mike. I love PHP!