PHP Heredoc语法

本文概述

通过使用语法, 我们可以通过PHP脚本显示HTML元素。

句法

<<<name of string
	//content
name of string

例子1

<?php
	echo <<<srcmini
	welcome to the best tutorial site
srcmini;
?>

输出

PHP Heredoc语法

例子2

另存为string.php

PHP Heredoc语法

输出

PHP Heredoc语法

来源:

https://www.srcmini02.com/29209.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_38012.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?