<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP | SDT 攻城獅區</title>
	<atom:link href="https://sdt.hameba.tw/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>https://sdt.hameba.tw</link>
	<description>由Steven, Der, Ted 三位高級打字員所組成，是三位工程師(攻城獅)所維護的技術分享平台，或許偶爾會分享一些日常，有任何問題或是錯誤的部分，歡迎留言告訴我們！</description>
	<lastBuildDate>Sun, 05 Jan 2020 18:13:59 +0800</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.3</generator>

<image>
	<url>https://sdt.hameba.tw/wp-content/uploads/2020/02/hameba_favicon-150x150.png</url>
	<title>PHP | SDT 攻城獅區</title>
	<link>https://sdt.hameba.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>php &#060;?= 標記的意思</title>
		<link>https://sdt.hameba.tw/364/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=php-%25e6%25a8%2599%25e8%25a8%2598%25e7%259a%2584%25e6%2584%258f%25e6%2580%259d</link>
				<comments>https://sdt.hameba.tw/364/#respond</comments>
				<pubDate>Sun, 22 Dec 2019 12:48:32 +0000</pubDate>
		<dc:creator><![CDATA[Ted]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">https://sdt.hameba.tw/?p=364</guid>
				<description><![CDATA[<p>開發 php 的時候，有時會看到開頭是 &#60;?= 的寫法，這跟 &#60;?php 的標記有什麼差別呢？ 查 &#8230; </p>
<p class="link-more"><a href="https://sdt.hameba.tw/364/" class="more-link">閱讀全文<span class="screen-reader-text">〈php &#60;?= 標記的意思〉</span></a></p>
The post <a href="https://sdt.hameba.tw/364/">php <?= 標記的意思</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></description>
								<content:encoded><![CDATA[<p>開發 php 的時候，有時會看到開頭是 &lt;?= 的寫法，這跟 &lt;?php 的標記有什麼差別呢？</p>
<p>查了一下發現原來是</p>
<p><span id="more-364"></span></p><pre class="crayon-plain-tag">&lt;?= '阿彌陀佛' ?&gt;
// output 阿彌陀佛

&lt;?php echo '阿彌陀佛' ?&gt;
// output 阿彌陀佛

// 最後 output 的結果都是阿彌陀佛。
// 由以上範例得知， &lt;?= 是 &lt;?php echo 的快速寫法。</pre><p>這個功能在 php 5.4.0 之後才是預設的開啟功能，在這版本之前，要手動去 php.ini 設定 short_open_tag 這個參數，把它啟用才可以。</p>
<p>Reference</p>
<p><a href="https://www.php.net/manual/en/ini.core.php#ini.short-open-tag">https://www.php.net/manual/en/ini.core.php#ini.short-open-tag</a></p>
<div id="gtx-trans">
<div class="gtx-trans-icon"></div>
</div>The post <a href="https://sdt.hameba.tw/364/">php <?= 標記的意思</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></content:encoded>
							<wfw:commentRss>https://sdt.hameba.tw/364/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
