|
|
Tutorials » Php »
|
Topic |
What is echo Function and how it is used in string?
|
|
Explanation |
|
The echo function is used to output one or more string in PHP.
Syntax:
echo(strings)
In the above syntax "strings" represents one or more string to be outputted.
Example:
<?php
$str = "Hey how are you!";
echo $str;
echo "HIOX INDIA";
?>
Result:
Hey how are you!
HIOX INDIA
In the above echo function example explains that it does'nt require a "()" as it is not actually a function.
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|