'echo' in PHP
PHP echo statement can be used to print the string, multi-line strings, escaping characters, variable, array, etc
Some important points that you must know about the echo statement are:
1. echo is a statement, which is used to display the output.
2. echo can be used with or without parentheses: echo(), and echo.
3. echo does not return any value.
4. We can pass multiple strings separated by a comma (, ) in echo.
5. echo is faster than the print statement.
STRING:
output: Hello PHP echo
MULTI-STRING:
output: Hello by PHP echo this is multi line statement inside PHP echo
ESCAPING CHARACTERS
output: Hello world "string" text continues
VARIABLE VALUE
output: Message is: Hello JavaTpoint PHP
KCS Education offers software courses handled by team of experts.
KCS Education offers PHP Courses, HTML Courses, Website Design Courses, JAVA Courses, Android Courses, Competitive exam training courses and Quantitative Aptitude Training online. Visit our website www.ekcs.in or call 8925450309
|