> Online tutorial : echo and print
Showing posts with label echo and print. Show all posts
Showing posts with label echo and print. Show all posts

echo and print

The echo() and print() function are used to output the given argument.it can output all types single and multiple outputs can be made with these command
Syntax
int print(string $arg)
void echo (string $arg1[,string $ ,,])
Similarities
They both language constructs (not function)so they can be used without parentheses
Example


<?php
echo "welcome to india":
print "welcome to india";

?>

Output: