<?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>Single Quoted String Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/single-quoted-string/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/single-quoted-string/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Fri, 06 Aug 2021 13:06:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Tutorial for Single Quoted String</title>
		<link>https://www.scmgalaxy.com/tutorials/tutorial-for-single-quoted-string/</link>
					<comments>https://www.scmgalaxy.com/tutorials/tutorial-for-single-quoted-string/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 13:06:17 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[How to Create Strings Using Single quotes]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Single Quoted]]></category>
		<category><![CDATA[Single Quoted String]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[What]]></category>
		<category><![CDATA[What is Single Quoted string]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7505</guid>

					<description><![CDATA[<p>What is Single Quoted string? In PHP, we can make a string by surrounding the content in a single quotation [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-single-quoted-string/">Tutorial for Single Quoted String</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">What is Single Quoted string?</h3>



<p class="wp-block-paragraph">In PHP, we can make a string by surrounding the content in a single quotation mark. In PHP, it is the simplest way to specify a string.</p>



<p class="wp-block-paragraph">Escape a literal single quote with a backslash (), and use double backslash to specify a literal backslash (). (\). All other backslash characters, such as r and n, will be output as they are instead of having any special meaning.</p>



<h3 class="wp-block-heading">How to Create Strings Using Single quotes with Example.</h3>



<p class="wp-block-paragraph">Let&#8217;s have a look at the four alternative approaches to writing PHP string functions and manipulating strings in PHP.</p>



<p class="wp-block-paragraph">Using Single Quotes to Build PHP Strings: The simplest approach to create a string is to use single quotes.</p>



<p class="wp-block-paragraph">Let&#8217;s have a look at a PHP example that generates a simple string.</p>



<p class="wp-block-paragraph"><strong>Example 1</strong>:-</p>



<script src="https://gist.github.com/AdarshAshwani/6c1f64b0b26f907c4332fa29f47ac3da.js"></script>



<p class="wp-block-paragraph"><strong>Output:</strong>&#8211;</p>



<pre class="wp-block-code"><code>Hello text within single quote</code></pre>



<p class="wp-block-paragraph"><strong>Example 2</strong>:-</p>



<script src="https://gist.github.com/AdarshAshwani/66d58352e682db5bb6a542d1ff5822c0.js"></script>



<p class="wp-block-paragraph"><strong>Output:</strong>&#8211;</p>



<pre class="wp-block-code"><code>Hello text multiple line text within single quoted string 
Using double "quote" directly inside single quoted string 
Using escape sequences \n in single quoted string</code></pre>



<p class="wp-block-paragraph"><strong>Example 3</strong>:-</p>



<script src="https://gist.github.com/AdarshAshwani/7891ee21ba34f6ab6f3c154967dbee59.js"></script>



<p class="wp-block-paragraph"><strong>Output:</strong>&#8211;</p>



<pre class="wp-block-code"><code>trying variable $num1 
trying backslash n and backslash t inside single quoted string \n \t 
Using single quote 'my quote' and \backslash</code></pre>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-single-quoted-string/">Tutorial for Single Quoted String</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/tutorial-for-single-quoted-string/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
