<?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>heredoc 归档 - 手里有只毛毛虫</title>
	<atom:link href="https://www.krjojo.com/tag/heredoc/feed" rel="self" type="application/rss+xml" />
	<link>https://www.krjojo.com/tag/heredoc</link>
	<description>号角声起 - 等你启航</description>
	<lastBuildDate>Thu, 24 Oct 2024 09:34:56 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://www.krjojo.com/wp-content/uploads/2025/02/毛毛虫2.avif</url>
	<title>heredoc 归档 - 手里有只毛毛虫</title>
	<link>https://www.krjojo.com/tag/heredoc</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>PHP中的heredoc和nowdoc有哪些区别</title>
		<link>https://www.krjojo.com/10155.html</link>
					<comments>https://www.krjojo.com/10155.html#respond</comments>
		
		<dc:creator><![CDATA[毛毛虫]]></dc:creator>
		<pubDate>Thu, 24 Oct 2024 09:29:18 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[信息技术]]></category>
		<category><![CDATA[heredoc]]></category>
		<category><![CDATA[nowdoc]]></category>
		<category><![CDATA[大段文本]]></category>
		<category><![CDATA[字符串]]></category>
		<guid isPermaLink="false">https://www.krjojo.com/?p=10155</guid>

					<description><![CDATA[<p>PHP中的heredoc和nowdoc是两种不同的字符串定义方式，它们允许开发者定义一个字符串跨越多行，而不必担心字符串拼接或双引号和单引号的使用。这两种方式最主要的区别在于：heredoc支持变量解析、特殊字符转义和函数表达的解析，而nowdoc类似于单引号字符串，不进行任何解析，适合用于定义不需要解析的大段文本。heredoc和nowdoc的使用，提高了代码的可读性和易维护性，其中，heredoc因为支持变量解析，特别适用于需要在长字符串中嵌入变量或表达式的场景。</p>
<p><a href="https://www.krjojo.com/10155.html">PHP中的heredoc和nowdoc有哪些区别</a>最先出现在<a href="https://www.krjojo.com">手里有只毛毛虫</a>。</p>
]]></description>
		
					<wfw:commentRss>https://www.krjojo.com/10155.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
