好!欢迎访问迷津渡口 现在时间是: 天气 °C ~ °C

迷津渡口

越感到迷惑 越接近真理

heredoc字符串标记

heredoc标记类似双引号作用,但无需转义双引号。

常用于输出html字符串。

print <<<HTML
<ul class="fruit_class">
  <li>apple</li>
  <li>orange</li>
</ul>
HTML;

注意标记应该自立一行,直接输出时应该在结束标记添加分号。

另外赋值给变量时,标记仍自立一行,结束标记可不加分号:

$f1="apple";
$f2="orange";
$m1="My Favorite fruit";
$html=<<<HTML
<ul class="fruit_class">
  <li>$f1</li>
  <li>$f2</li>
</ul>
<p>
HTML
. $m1 . '</p>';
print $html;


点赞0
 标签: php heredoc
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
nike free 5.0
 nike free 5.0 约 2 小时前回复
#132
<a href="http://www.pearsonatbett.com/asics-gel-kinsei-5-for-vendita-kijiji-schuhed">asics gel kinsei 5 for vendita kijiji</a> <a href="http://www.studiopottier.com/all-white-jordan-hat-hatr">all white jordan hat</a> <a href="http://www.yasirmx.com/nike-free-trainer-5.0-cross-training-shoes-skot">nike free trainer 5.0 cross training shoes</a> <a href="http://www.netdimpots.com/youth-dallas-goedert-limited-black-nike-jersey-nfl-philadelphia-eagles-88-2016-salute-to-service-nflt">youth dallas goedert limited black nike jersey nfl philadelphia eagles 88 2016 salute to service</a> <a href="http://www.menokyousitu.com/boys-aj-green-jersey-nflu">boys aj green jersey</a> <a href="http://www.videoglade.com/kvinners-asics-gel-quantum-360-himmelen-bl%C3%A5-s%C3%B8lv-kurpesd">kvinners asics gel quantum 360 himmelen bl氓 s酶lv</a>
nike free 5.0 http://www.cokhithinhanh.com/nike-free-5.0-skot
aktuelresim
 aktuelresim 2019-03-20 10:41回复
#131
<a href="http://www.zeraxia.com/plain-nero-converse-scarpej">plain nero converse</a> <a href="http://www.turisim.com/nike-kyrie-2-grau-schuhei">nike kyrie 2 grau</a> <a href="http://www.sybelite.com/air-jordan-4-sort-r%C3%B8d-skoh">air jordan 4 sort r酶d</a> <a href="http://www.lemodemo.com/james-harden-okc-thunder-jersey-nfli">james harden okc thunder jersey</a> <a href="http://www.fskanglipu.com/hvit-nike-sko-air-max-obuvk">hvit nike sko air max</a> <a href="http://www.tekmenu.com/coach-kristin-wristlet-coachh">coach kristin wristlet</a>
aktuelresim http://www.aktuelresim.com/
stmnetworks
 stmnetworks 2019-03-18 18:15回复
#130
<a href="http://www.sundialproductions.net/jordan-6-svart-infrar%C3%B8d-billig-schuhea">jordan 6 svart infrar酶d billig</a> <a href="http://www.survivewatercrisis.net/reebok-flyknit-weave-gr%C3%A5-hvid-kurpese">reebok flyknit weave gr氓 hvid</a> <a href="http://www.szczybelski.net/nike-free-3.0-v4-hommes-chaussures-gris-argent-platinum-or-chaussuresa">nike free 3.0 v4 hommes chaussures gris argent platinum or</a> <a href="http://www.tammyjdalton.net/nike-huarache-utility-tout-noir-kurpesg">nike huarache utility tout noir</a> <a href="http://www.tastingtheacorn.net/adidas-casual-sko-svart-rosa-schuhee">adidas casual sko svart rosa</a> <a href="http://www.technologyhandyman.net/air-max-lunar-1-venta-guide-obuvg">air max lunar 1 venta guide</a>
stmnetworks http://www.stmnetworks.net/
offgridac
 offgridac 2019-03-18 14:39回复
#129
<a href="http://www.cpbetas.com/herre-nike-air-huarache-billig-schuhee">herre nike air huarache billig</a> <a href="http://www.horecasummit.com/nike-kd-trey-5-hvid-s%C3%B8lv-scarpec">nike kd trey 5 hvid s酶lv</a> <a href="http://www.kosahudson.com/nike-jacksonville-jaguars-sideline-legend-authentic-logo-drifit-nfl-t-shirt-light-grey-nflx">nike jacksonville jaguars sideline legend authentic logo drifit nfl t shirt light grey</a> <a href="http://www.namkala.com/limited-nike-pink-womens-albert-wilson-jersey-nfl-15-miami-dolphins-rush-fashion-nflz">limited nike pink womens albert wilson jersey nfl 15 miami dolphins rush fashion</a> <a href="http://www.qubellinfo.com/air-jordan-retro-5-mint-gr%C3%B8nn-gr%C3%B8nn-kurpesa">air jordan retro 5 mint gr酶nn gr酶nn</a> <a href="http://www.sulukcum.com/nike-air-force-1-flyknit-low-lila-wei%C3%9F-butyg">nike air force 1 flyknit low lila wei脽</a>
offgridac http://www.offgridac.com/
zestchannel
 zestchannel 2019-03-18 14:15回复
#128
<a href="http://www.teamdalarna.com/under-armour-curry-one-bleu-vert-chaussuresl">under armour curry one bleu vert</a> <a href="http://www.syairshamyoun.com/air-jordan-retro-9-vert-jaune-chaussuresq">air jordan retro 9 vert jaune</a> <a href="http://www.fizalisfresh.com/adidas-zx-630-rot-himmelblau-schuhei">adidas zx 630 rot himmelblau</a> <a href="http://www.fsscas.com/nike-air-max-tailwind-6-dam%C3%A4nner-grau-wei%C3%9F-schuheh">nike air max tailwind 6 dam盲nner grau wei脽</a> <a href="http://www.imagimp.com/mennns-nike-air-max-tailwind-8-bl%C3%A5-hvit-obuvj">mennns nike air max tailwind 8 bl氓 hvit</a> <a href="http://www.burmamaritime.com/nike-air-max-90-premium-tape-blu-hero-camo-scarpep">nike air max 90 premium tape blu hero camo</a>
zestchannel http://www.zestchannel.com/
troyafolklor
 troyafolklor 2019-03-17 02:45回复
#127
<a href="http://www.emmamoney.com/nike-air-huarache-nm-gr%C3%BCn-orange-obuvd">nike air huarache nm gr眉n orange</a> <a href="http://www.guntruthers.com/nike-air-rejuven8-mule-3-marron-noir-scarpea">nike air rejuven8 mule 3 marron noir</a> <a href="http://www.jayandarmando.com/nike-air-max-1-essential-midnight-fl%C3%A5den-nederland-chaussuresg">nike air max 1 essential midnight fl氓den nederland</a> <a href="http://www.mikevi.com/air-max-thea-fl%C3%A5den-hvid-kurpesf">air max thea fl氓den hvid</a> <a href="http://www.mynaturalogy.com/nike-kyrie-3-weave-rosso-viola-obuva">nike kyrie 3 weave rosso viola</a> <a href="http://www.wvusigmakappa.com/ralph-lauren-city-polo-braun-grau-polox">ralph lauren city polo braun grau</a>
troyafolklor http://www.troyafolklor.com/
ilankocaeli
 ilankocaeli 2019-03-16 09:00回复
#126
<a href="http://www.matrawildlife.com/nike-roshe-run-high-cut-mujer-negro-watermelon-rojo-zapatosh">nike roshe run high cut mujer negro watermelon rojo</a> <a href="http://www.hiyawigs.com/air-max-nike-thea-blanco-zapatosk">air max nike thea blanco</a> <a href="http://www.fidgefingers.com/north-face-womens-3-in-1-coat-northfaceh">north face womens 3 in 1 coat</a> <a href="http://www.lintvan.com/nike-air-presto-grau-schwarz-schuhek">nike air presto grau schwarz</a> <a href="http://www.pubgdust.com/nike-free-trainer-5.0-hvid-and-s%C3%B8lv-skoi">nike free trainer 5.0 hvid and s酶lv</a> <a href="http://www.ahtantalya.com/nike-hypervenom-bleu-noir-chaussuresh">nike hypervenom bleu noir</a>
ilankocaeli http://www.ilankocaeli.com/
klarinetto
 klarinetto 2019-03-15 15:51回复
#125
<a href="http://www.avonew.com/links-of-london-pearl-drop-earrings-jewelryr">links of london pearl drop earrings</a> <a href="http://www.deriebeeck.com/nike-mercurial-vapor-6-ebay-sneakere">nike mercurial vapor 6 ebay</a> <a href="http://www.saatchixblog.com/mens-north-face-vest-nuptse-northfacer">mens north face vest nuptse</a> <a href="http://www.occformacion.com/discontinued-pandora-charms-2014-pandorar">discontinued pandora charms 2014</a> <a href="http://www.sdsremote.com/pandora-princess-tiara-ring-gold-pandorar">pandora princess tiara ring gold</a> <a href="http://www.dbgbackoffice.com/billig-nike-air-max-guile-dam%C3%A4nner-gr%C3%BCn-runningc">billig nike air max guile dam盲nner gr眉n</a>
klarinetto http://www.klarinetto.com/
gmfamilylaw
 gmfamilylaw 2019-03-15 10:42回复
#124
<a href="http://www.truthtapes.com/nike-air-max-bw-gul-himmelen-bl%C3%A5-obuvk">nike air max bw gul himmelen bl氓</a> <a href="http://www.veskopetrov.com/coach-madison-satchel-bag-coachh">coach madison satchel bag</a> <a href="http://www.kaosmotogp.com/femminile-air-jordan-retro-3-oro-gituttio-scarpei">femminile air jordan retro 3 oro gituttio</a> <a href="http://www.doularhythms.com/maschio-nike-air-presto-arancia-rosa-scarpeh">maschio nike air presto arancia rosa</a> <a href="http://www.animalpainvet.com/new-york-yankees-new-era-mlb-pure-silver-59fifty-cap-hath">new york yankees new era mlb pure silver 59fifty cap</a> <a href="http://www.texarillo.com/nike-air-max-90-hyp-premium-id-atomic-rouge-chaussuresh">nike air max 90 hyp premium id atomic rouge</a>
gmfamilylaw http://www.gmfamilylaw.com/
theskifanatic
 theskifanatic 2019-03-15 08:08回复
#123
<a href="http://www.theislandbody.com/nike-kd-9-green-sky-blue-shoesj">nike kd 9 green sky blue</a> <a href="http://www.zululeads.com/kvinders-nike-air-max-90-vt-bl%C3%A5-gr%C3%B8n-skop">kvinders nike air max 90 vt bl氓 gr酶n</a> <a href="http://www.notmyrichie.com/air-jordan-retro-3-oransje-mint-gr%C3%B8nn-obuvk">air jordan retro 3 oransje mint gr酶nn</a> <a href="http://www.mintyschoice.com/mens-nike-flyknit-lunar-1-gold-purple-shoesi">mens nike flyknit lunar 1 gold purple</a> <a href="http://www.mamapjblog.com/herre-asics-gel-kayano-21-appelsin-lilla-skoj">herre asics gel kayano 21 appelsin lilla</a> <a href="http://www.pdfunicorn.com/nike-air-max-90-svart-wolf-gr%C3%A5-obuvi">nike air max 90 svart wolf gr氓</a>
[url=http://www.theskifanatic.com/]theskifanatic[/url]
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸