echo() 函数输出一个或多个字符串。
可以字符串变量($str)的值输出:
$str = "hello world"; echo $str;
$str1 ="hello"; $str2 = "world"; echo $str1." ".$str2;
$arr = array("bill"=>"35"); echo "bill is ".$arr['bill']." years old.";
echo 'This ','string ','was ','made ','with multiple parameters.';
$color = "red"; echo "Roses are $color"; echo "<br>"; echo 'Roses are $color';
以上就介绍了echo使用!,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号