Home  >  Article  >  Several ways of php output

Several ways of php output

无忌哥哥
无忌哥哥Original
2018-06-27 17:16:572144browse

<?php
// 如何将生成的html代码发送到客户端显示
// 语句:echo,print 
// 功能:将内容以字符串形式输出到浏览器
// 区别: echo 直接发送 print 发送成功后返回1
// echo 直接发送
echo &#39;<h2>m.sbmmt.com</h2>&#39;;
// print 发送成功后返回1
echo print &#39;<h2>PHP中文网</h2>&#39;;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to use php codeNext article:How to use php code