
echo()函数输出一个或多个字符串。
注意 - echo()函数比print()函数更快。
语法
echo(str)
参数
str − 要发送到输出的字符串
返回值
echo()函数不返回任何内容。
立即学习“PHP免费学习笔记(深入)”;
示例
以下是一个示例:−
在线演示
输出
Welcome!
Example
Let us see another example −
Live Demo
输出
Welcome! This is our website!
Example
Let us see another example −
Live Demo
输出
This demo text is on multiple lines.











