+ 2

what is a echo?

5th Apr 2017, 2:34 PM
shani tiwari
shani tiwari - avatar
4 Answers
+ 23
echo is used to print something on webpage like- echo "Hello world"; echo $x; // value of x will be printed
5th Apr 2017, 2:41 PM
Shamima Yasmin
Shamima Yasmin - avatar
5th Apr 2017, 2:43 PM
Eranga
Eranga - avatar
0
Echo is the constant to output the result any type Echo "hello world" $hi="hello world" Echo "$hi"
6th Apr 2017, 6:29 PM
Yousif FN
Yousif FN - avatar
0
echo() = it can print one or more string , which may or may not enclosed with brackets. Example : echo "Green"; //or echo("Green"); If you want to print multiple strings, it should use comma-separated, and without enclosed in brackets. Example : echo "Red","Blue","Green"; // Valid statement echo ("Red","Blue","Green"); // Invalid statement , because use Brackets
13th Apr 2017, 3:12 AM
Mahmoud Zardi
Mahmoud Zardi - avatar