<?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>String Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/string/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/string/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:30:48 +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>Modifying Text Nodes in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/modifying-text-nodes-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/modifying-text-nodes-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Mon, 09 Aug 2021 07:48:15 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[String]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7610</guid>

					<description><![CDATA[<p>Properties Data Length Methods appendData(String) deleteData(start, length) insertData(start, string) replaceData(start, length, string) splitText(start) substringData(start, length) Length Length property is used [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/modifying-text-nodes-in-javascript/">Modifying Text Nodes in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Properties</strong></h2>



<ul class="wp-block-list"><li><strong>Data</strong></li><li><strong>Length</strong></li></ul>



<h2 class="wp-block-heading"><strong>Methods</strong></h2>



<ul class="wp-block-list"><li><strong>appendData(String)</strong></li><li><strong>deleteData(start, length)</strong></li><li><strong>insertData(start, string)</strong></li><li><strong>replaceData(start, length, string)</strong></li><li><strong>splitText(start)</strong></li><li><strong>substringData(start, length)</strong></li></ul>



<h2 class="wp-block-heading"><strong>Length</strong></h2>



<p class="wp-block-paragraph">Length property is used to access the length of Text which indicates the number of characters it contains.</p>



<p class="wp-block-paragraph">Syntax:-   TextNode.length</p>



<h2 class="wp-block-heading"><strong>Data</strong></h2>



<p class="wp-block-paragraph">Data property is used to set or return the value of a text node and comment node objects.</p>



<p class="wp-block-paragraph"><strong>Syntax: &#8211;</strong><br><strong>Sets</strong><br>TextNode.data = value<br><strong>Returns</strong><br>TextNode.data</p>



<p class="wp-block-paragraph"><strong>Ex:-</strong> TextNode.data = “Hello DevOpsSchool”;</p>



<h2 class="wp-block-heading"><strong>appendData(String)</strong></h2>



<p class="wp-block-paragraph">This method is used to append the passed string to the end of the text node and comment node.</p>



<p class="wp-block-paragraph"><strong>Syntax: &#8211;</strong><br>TextNode.appendData(String);</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong><br>TextNode.appendData(“Hello DevOpsSchool”);</p>



<h2 class="wp-block-heading"><strong>deleteData(start, length)</strong></h2>



<p class="wp-block-paragraph">This method is used to delete or remove text content from a text node and comment node. It deletes the specified <em>length</em> of characters starting from index defined in <em>start</em>.</p>



<p class="wp-block-paragraph"><strong>Syntax:-</strong><br>TextNode.deleteData(start, length);</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong><br>TextNode.deleteData(0, 5);</p>



<h2 class="wp-block-heading"><strong>insertData(start, string)</strong></h2>



<p class="wp-block-paragraph">This method is used to insert text content to text node and comment node. It inserts the value in <em>string</em>, starting at the character index specified in <em>start</em>.</p>



<p class="wp-block-paragraph"><strong>Syntax:-</strong><br>TextNode.insertData(start, string)</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong><br>TextNode.insertData(3, “Hello”)</p>



<h2 class="wp-block-heading"><strong>replaceData(start, length, string)</strong></h2>



<p class="wp-block-paragraph">This method is used to replace text content of text node and comment node. It inserts the value in <em>string</em>, starting at the character index specified in <em>start</em>.</p>



<p class="wp-block-paragraph"><strong>Syntax:-</strong><br>TextNode.replaceData(start, length, string)</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong><br>TextNode.replaceData(0, 4, “Hello”)</p>



<h2 class="wp-block-heading"><strong>splitText(start)</strong></h2>



<p class="wp-block-paragraph">The splitText(start) method breaks the Text node into two nodes at the specified <em>start</em> index, keeping both nodes in the tree as siblings. It returns right side of the split in a new text node and leaves the left side in the original.</p>



<p class="wp-block-paragraph"><strong>Syntax: &#8211;</strong><br>var rightSide = TextNode.splitText(start)</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong><br>var rightSide = TextNode.splitText(5)</p>



<h2 class="wp-block-heading"><strong>substringData(start, length)</strong></h2>



<p class="wp-block-paragraph">It returns the part of the current element&#8217;s (TextNode and CommentNode) text content from the specified position with the specified length.</p>



<p class="wp-block-paragraph"><strong>Syntax:-</strong><br>TextNode.substringData(start, length)</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong><br>TextNode.substringData(2, 5);</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/modifying-text-nodes-in-javascript/">Modifying Text Nodes in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/modifying-text-nodes-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Which String Functions are present in String?</title>
		<link>https://www.scmgalaxy.com/tutorials/which-string-functions-are-present-in-string/</link>
					<comments>https://www.scmgalaxy.com/tutorials/which-string-functions-are-present-in-string/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Sat, 07 Aug 2021 13:21:49 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[php string]]></category>
		<category><![CDATA[php String operators]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[String Functions]]></category>
		<category><![CDATA[String Functions are present in String]]></category>
		<category><![CDATA[String in PHP]]></category>
		<category><![CDATA[String operators]]></category>
		<category><![CDATA[Which String Functions are present in String]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7603</guid>

					<description><![CDATA[<p>addcslashes — Quote string with slashes in a C style addslashes — Quote string with slashes bin2hex — Convert binary [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/which-string-functions-are-present-in-string/">Which String Functions are present in String?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<ul class="wp-block-list"><li>addcslashes — Quote string with slashes in a C style</li><li>addslashes — Quote string with slashes</li><li>bin2hex — Convert binary data into hexadecimal representation</li><li>chop — Alias of rtrim</li><li>chr — Return a specific character</li><li>chunk_split — Split a string into smaller chunks</li><li>convert_cyr_string — Convert from one Cyrillic character set to another</li><li>convert_uudecode — Decode a uuencoded string</li><li>convert_uuencode — Uuencode a string</li><li>count_chars — Return information about characters used in a string</li><li>crc32 — Calculates the crc32 polynomial of a string</li><li>crypt — One-way string hashing</li><li>echo — Output one or more strings</li><li>explode — Split a string by string</li><li>fprintf — Write a formatted string to a stream</li><li>get_html_translation_table — Returns the translation table used by htmlspecialchars and htmlentities</li><li>hebrev — Convert logical Hebrew text to visual text</li><li>hebrevc — Convert logical Hebrew text to visual text with newline conversion</li><li>hex2bin — Decodes a hexadecimally encoded binary string</li><li>html_entity_decode — Convert all HTML entities to their applicable characters</li><li>htmlentities — Convert all applicable characters to HTML entities</li><li>htmlspecialchars_decode — Convert special HTML entities back to characters</li><li>htmlspecialchars — Convert special characters to HTML entities</li><li>implode — Join array elements with a string</li><li>join — Alias of implode</li><li>lcfirst — Make a string&#8217;s first character lowercase</li><li>levenshtein — Calculate Levenshtein distance between two strings</li><li>localeconv — Get numeric formatting information</li><li>ltrim — Strip whitespace (or other characters) from the beginning of a string</li><li>md5_file — Calculates the md5 hash of a given file</li><li>md5 — Calculate the md5 hash of a string</li><li>metaphone — Calculate the metaphone key of a string</li><li>money_format — Formats a number as a currency string</li><li>nl_langinfo — Query language and locale information</li><li>nl2br — Inserts HTML line breaks before all newlines in a string</li><li>number_format — Format a number with grouped thousands</li><li>ord — Return ASCII value of character</li><li>parse_str — Parses the string into variables</li><li>print — Output a string</li><li>printf — Output a formatted string</li><li>quoted_printable_decode — Convert a quoted-printable string to an 8 bit string</li><li>quoted_printable_encode — Convert a 8 bit string to a quoted-printable string</li><li>quotemeta — Quote meta characters</li><li>rtrim — Strip whitespace (or other characters) from the end of a string</li><li>setlocale — Set locale information</li><li>sha1_file — Calculate the sha1 hash of a file</li><li>sha1 — Calculate the sha1 hash of a string</li><li>similar_text — Calculate the similarity between two strings</li><li>soundex — Calculate the soundex key of a string</li><li>sprintf — Return a formatted string</li><li>sscanf — Parses input from a string according to a format</li><li>str_getcsv — Parse a CSV string into an array</li><li>str_ireplace — Case-insensitive version of str_replace.</li><li>str_pad — Pad a string to a certain length with another string</li><li>str_repeat — Repeat a string</li><li>str_replace — Replace all occurrences of the search string with the replacement string</li><li>str_rot13 — Perform the rot13 transform on a string</li><li>str_shuffle — Randomly shuffles a string</li><li>str_split — Convert a string to an array</li><li>str_word_count — Return information about words used in a string</li><li>strcasecmp — Binary safe case-insensitive string comparison</li><li>strchr — Alias of strstr</li><li>strcmp — Binary safe string comparison</li><li>strcoll — Locale based string comparison</li><li>strcspn — Find length of initial segment not matching mask</li><li>strip_tags — Strip HTML and PHP tags from a string</li><li>stripcslashes — Un-quote string quoted with addcslashes</li><li>stripos — Find the position of the first occurrence of a case-insensitive substring in a string</li><li>stripslashes — Un-quotes a quoted string</li><li>stristr — Case-insensitive strstr</li><li>strlen — Get string length</li><li>strnatcasecmp — Case insensitive string comparisons using a &#8220;natural order&#8221; algorithm</li><li>strnatcmp — String comparisons using a &#8220;natural order&#8221; algorithm</li><li>strncasecmp — Binary safe case-insensitive string comparison of the first n characters</li><li>strncmp — Binary safe string comparison of the first n characters</li><li>strpbrk — Search a string for any of a set of characters</li><li>strpos — Find the position of the first occurrence of a substring in a string</li><li>strrchr — Find the last occurrence of a character in a string</li><li>strrev — Reverse a string</li><li>strripos — Find the position of the last occurrence of a case-insensitive substring in a string</li><li>strrpos — Find the position of the last occurrence of a substring in a string</li><li>strspn — Finds the length of the initial segment of a string consisting entirely of characters contained within a given mask.</li><li>strstr — Find the first occurrence of a string</li><li>strtok — Tokenize string</li><li>strtolower — Make a string lowercase</li><li>strtoupper — Make a string uppercase</li><li>strtr — Translate characters or replace substrings</li><li>substr_compare — Binary safe comparison of two strings from an offset, up to length characters</li><li>substr_count — Count the number of substring occurrences</li><li>substr_replace — Replace text within a portion of a string</li><li>substr — Return part of a string</li><li>trim — Strip whitespace (or other characters) from the beginning and end of a string</li><li>ucfirst — Make a string&#8217;s first character uppercase</li><li>ucwords — Uppercase the first character of each word in a string</li><li>vfprintf — Write a formatted string to a stream</li><li>vprintf — Output a formatted string</li><li>vsprintf — Return a formatted string</li><li>wordwrap — Wraps a string to a given number of characters</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/which-string-functions-are-present-in-string/">Which String Functions are present in String?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/which-string-functions-are-present-in-string/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial for Double Quoted String</title>
		<link>https://www.scmgalaxy.com/tutorials/tutorial-for-double-quoted-string/</link>
					<comments>https://www.scmgalaxy.com/tutorials/tutorial-for-double-quoted-string/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 13:21:52 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Create Strings Using Double Quoted]]></category>
		<category><![CDATA[Double Quoted]]></category>
		<category><![CDATA[Double Quoted String]]></category>
		<category><![CDATA[How to Create Strings Using Double Quoted]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[Tutorial for Double Quoted String]]></category>
		<category><![CDATA[What is Double Quoted string]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7523</guid>

					<description><![CDATA[<p>What is Double Quoted string? In PHP, we can also define a string by wrapping it in a double quote. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-double-quoted-string/">Tutorial for Double 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 Double Quoted string?</h3>



<p class="wp-block-paragraph">In PHP, we can also define a string by wrapping it in a double quote. However, double quote PHP strings will be used to evaluate escape sequences and variables.</p>



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



<p class="wp-block-paragraph">When compared to single quotes, double quotes are utilised to build more complicated strings.</p>



<p class="wp-block-paragraph">Variable names can be enclosed in double quotations, and the values of those variables will be displayed.</p>



<p class="wp-block-paragraph">Consider the following scenario.</p>



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



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



<p class="wp-block-paragraph"><strong>Output:</strong>–</p>



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



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



<script src="https://gist.github.com/AdarshAshwani/072ed248b578b2d792ffdb472d9ed7e3.js"></script>



<p class="wp-block-paragraph"><strong>Output:</strong>–</p>



<pre class="wp-block-code"><code>Parse error: syntax error, unexpected 'quote' (T_STRING) in C:\wamp\www\string1.php on line 2</code></pre>



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



<script src="https://gist.github.com/AdarshAshwani/009d182cdfafa6c311df652aa284fd05.js"></script>



<p class="wp-block-paragraph"><strong>Output:</strong>– </p>



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



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



<script src="https://gist.github.com/AdarshAshwani/7f5cfac16eee56564733b09b87aac797.js"></script>



<p class="wp-block-paragraph"><strong>Output:</strong>–</p>



<pre class="wp-block-code"><code>Number is: 10</code></pre>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-double-quoted-string/">Tutorial for Double 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-double-quoted-string/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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>
		<item>
		<title>Complete tutorial for String in PHP</title>
		<link>https://www.scmgalaxy.com/tutorials/complete-tutorial-for-string-in-php/</link>
					<comments>https://www.scmgalaxy.com/tutorials/complete-tutorial-for-string-in-php/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 12:37:37 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[String in PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[What]]></category>
		<category><![CDATA[What is String]]></category>
		<category><![CDATA[What is String operators]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7492</guid>

					<description><![CDATA[<p>What is String? A PHP string is a collection of characters that can be used to save and manipulate text. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-tutorial-for-string-in-php/">Complete tutorial for String in PHP</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 String?</h3>



<p class="wp-block-paragraph">A PHP string is a collection of characters that can be used to save and manipulate text. PHP only supports a 256-character set, hence it doesn&#8217;t support Unicode natively. </p>



<p class="wp-block-paragraph">The term &#8220;string&#8221; refers to a group of characters. PHP supports a number of data types, including strings.</p>



<p class="wp-block-paragraph">Alphanumeric characters are allowed in string variables. When these conditions are met, strings are generated.</p>



<ul class="wp-block-list"><li>You create a variable and assign it to string characters.</li><li>With the echo statement, you can use PHP Strings directly.</li><li>String functions in PHP are language constructs that aid in the capturing of words.</li><li>Understanding how PHP strings work and manipulating them can help you become a more successful and productive developer.</li></ul>



<p class="wp-block-paragraph"><strong>In PHP, there are four different ways to specify a string literal.</strong></p>



<ol class="wp-block-list"><li><strong>single quoted</strong></li><li><strong>double quoted</strong></li><li><strong>heredoc syntax</strong></li><li><strong>newdoc syntax (since PHP 5.3)</strong></li></ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-tutorial-for-string-in-php/">Complete tutorial for String in PHP</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/complete-tutorial-for-string-in-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How many data types How to work are there in JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-many-data-types-how-to-work-are-there-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-many-data-types-how-to-work-are-there-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 05 Aug 2021 10:45:37 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Accessing String]]></category>
		<category><![CDATA[Boolean]]></category>
		<category><![CDATA[data types]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[String]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7438</guid>

					<description><![CDATA[<p>Boolean Boolean is the built-in object corresponding to the primitive Boolean data type. JavaScript boolean can have one of two [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-many-data-types-how-to-work-are-there-in-javascript/">How many data types How to work are there in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Boolean</h2>



<p class="wp-block-paragraph">Boolean is the built-in object corresponding to the primitive Boolean data type. JavaScript boolean can have one of two values: true or false.</p>



<p class="wp-block-paragraph"><strong>Primitive Values</strong><br>var primitiveTrue = true;<br>var primitiveFalse = false;</p>



<p class="wp-block-paragraph"><strong>Boolean Function</strong><br>var functionTrue = Boolean(true);<br>var functionFalse = Boolean(flase);</p>



<p class="wp-block-paragraph"><strong>Boolean Constructor</strong><br>var constructorTrue = new Boolean(true);<br>var constructorFalse = new Boolean(false);</p>



<h2 class="wp-block-heading">Boolean</h2>



<p class="wp-block-paragraph">If value parameter is omitted or is 0, -0, null, false, NaN, undefined, or the empty string (&#8220;&#8221;), the object has an initial value of false.</p>



<script src="https://gist.github.com/vijaypk376/149d829402181963bffc92313c32e4d6.js"></script>



<h2 class="wp-block-heading">String</h2>



<p class="wp-block-paragraph">A string is a built-in object corresponding to the primitive string data type.<br>A string is a group of characters.</p>



<script src="https://gist.github.com/vijaypk376/e22c234d07a5f24dc19550bb16fb8b14.js"></script>



<h2 class="wp-block-heading">String</h2>



<p class="wp-block-paragraph"><strong>Primitive</strong><br>var str = “Hello DevopsSchool”;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br>var str = „Hello DevopsSchool‟; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<span class="has-inline-color has-vivid-red-color"><strong>String</strong>  </span>                            <br>var str = <code>Hello DevopsSchool</code>;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>



<p class="wp-block-paragraph"><strong>Constructor</strong><br>var str = new String (“Hello DevopsSchool”);&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br>var str = new String („Hello DevopsSchool‟); &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; <strong><span class="has-inline-color has-vivid-red-color">Object</span></strong><br>var str = new String (<code>Hello DevopsSchool</code>);&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>



<h2 class="wp-block-heading">Accessing String</h2>



<script src="https://gist.github.com/vijaypk376/d9de724475c9a5f09d11dde67c556711.js"></script>



<h2 class="wp-block-heading">Access String</h2>



<script src="https://gist.github.com/vijaypk376/8bf9dbed141c4f1799ee05122abc2a4f.js"></script>



<h2 class="wp-block-heading">String Concatenation</h2>



<script src="https://gist.github.com/vijaypk376/e61aeaac3ea8c3fffe376bb48e3b8951.js"></script>



<h2 class="wp-block-heading">Concat Operator</h2>



<script src="https://gist.github.com/vijaypk376/8fe6fe63a556501fb121ec01c467ce39.js"></script>



<h2 class="wp-block-heading">Template Literal/ Template Strings</h2>



<p class="wp-block-paragraph">Template literals are string literals allowing embedded expressions. You can<br>use multi-line strings and string interpolation features with them.<br>Template literals are enclosed by the back-tick () character instead of double<br>or single quotes.</p>



<script src="https://gist.github.com/vijaypk376/8813bef0d5f6e346641f1999082de306.js"></script>



<h2 class="wp-block-heading">Multiple Line String</h2>



<script src="https://gist.github.com/vijaypk376/95e4a8c299de7dfbca20d43a38485ddd.js"></script>



<h2 class="wp-block-heading">String Interpolation</h2>



<p class="wp-block-paragraph">Template literals can contain placeholders. These are indicated by the dollar sign and curly braces<br>(${expression})</p>



<script src="https://gist.github.com/vijaypk376/181a6c09db73f4cf00998e8ade06fb15.js"></script>



<h2 class="wp-block-heading">String Methods</h2>



<ul class="wp-block-list"><li><strong>charAt ( )</strong></li><li><strong>charCodeAt( )</strong></li><li><strong>toUpperCase( )</strong></li><li><strong>toLowerCase ( )</strong></li><li><strong>Trim( )</strong></li><li><strong>Replace ( )</strong></li><li><strong>Split ( )</strong></li><li><strong>indexOf( )</strong></li><li><strong>Search ( )</strong></li><li><strong>Slice ( )</strong></li><li><strong>Substring( )</strong></li><li><strong>Substr ()</strong></li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-many-data-types-how-to-work-are-there-in-javascript/">How many data types How to work are there in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-many-data-types-how-to-work-are-there-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>List of keywords and reserved words in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/list-of-keywords-and-reserved-words-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/list-of-keywords-and-reserved-words-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 22 Jul 2021 13:00:18 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Keywords]]></category>
		<category><![CDATA[reserved words]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[Variables]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6935</guid>

					<description><![CDATA[<p>Keyword or Reserved words var delete for let brack super void case do static function new switch while interface catch [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/list-of-keywords-and-reserved-words-in-javascript/">List of keywords and reserved words in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Keyword or Reserved words</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>var</td><td>delete</td><td>for</td><td>let</td><td>brack</td></tr><tr><td>super</td><td>void</td><td>case</td><td>do</td><td>static</td></tr><tr><td>function</td><td>new</td><td>switch</td><td>while</td><td>interface</td></tr><tr><td>catch</td><td>else</td><td>if</td><td>package</td><td>finally</td></tr><tr><td>this</td><td>with</td><td>class</td><td>enum</td><td>default</td></tr><tr><td>implements</td><td>private</td><td>throw</td><td>tiled</td><td>typeof</td></tr><tr><td>const</td><td>export</td><td>import</td><td>protected</td><td>return</td></tr><tr><td>true</td><td>continue</td><td>extends</td><td>in</td><td></td></tr><tr><td>instanceof</td><td></td><td></td><td></td><td></td></tr><tr><td>public</td><td>try</td><td>debugger</td><td>false</td><td></td></tr></tbody></table></figure>



<p class="wp-block-paragraph">In JavaScript, we do not need to specify the type of the variable because it is dynamically used by the JavaScript engine.<br>We can use var data type. It can hold any type of data like String, Number, Boolean, etc.</p>



<p class="wp-block-paragraph">Primitive Data Type                                                                Non-Primitive Data type</p>



<p class="wp-block-paragraph">String                                                                                            Object<br>Number                                                                                        Array<br>Boolean                                                                                        RegExp<br>Undefine </p>



<p class="wp-block-paragraph">                                                                                               </p>



<p class="wp-block-paragraph">                                                                                   </p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="697" height="281" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/primitive-and-non-primitive.png" alt="" class="wp-image-6941" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/primitive-and-non-primitive.png 697w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/primitive-and-non-primitive-300x121.png 300w" sizes="(max-width: 697px) 100vw, 697px" /></figure>



<figure class="wp-block-image size-large"><img decoding="async" width="602" height="462" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/primitive-and-non-primitive-2.png" alt="" class="wp-image-6949" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/primitive-and-non-primitive-2.png 602w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/primitive-and-non-primitive-2-300x230.png 300w" sizes="(max-width: 602px) 100vw, 602px" /></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/list-of-keywords-and-reserved-words-in-javascript/">List of keywords and reserved words in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/list-of-keywords-and-reserved-words-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>String manipulation exercise</title>
		<link>https://www.scmgalaxy.com/tutorials/string-manipulation-exercise/</link>
					<comments>https://www.scmgalaxy.com/tutorials/string-manipulation-exercise/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 05:06:58 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[String]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2221</guid>

					<description><![CDATA[<p>mnanjala created the topic: String manipulation exercise Hi Guys, Say there is a text file inject.dat, it has 5 entries [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/string-manipulation-exercise/">String manipulation exercise</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>mnanjala created the topic: String manipulation exercise</strong></p>
<p>Hi Guys,</p>
<p>Say there is a text file inject.dat, it has 5 entries as below<br />
PKGNAME=Project-debug<br />
OLD_VERSION=1.0.0<br />
NEW_VERSION=1.0.1<br />
PRODUCT NUMBER=1<br />
RELASE DATE=11/11/2011</p>
<p>How we could write shell script so I can read each line replace everything after &#8220;=&#8221;sign, with new value, example run<br />
./inject.sh $PKGNAME $OLD_VERSION $NEW_VERSION $PRODUCT_NUMBER $RELEASE_DATE , so it should update the inject.dat with newer value what ever I give as parameter? Any idea?</p>
<p>Hint getopts.</p>
<p><strong>rajeshkumar replied the topic: Re: String manipulation exercise</strong><br />
Hi praveen,</p>
<p>getopts is the best way to implement. I could not get much time to look into it. However, please find my quick code to implement the same. Please change the file name as needed. if time permits, tomorrow i will tell you more better way.</p>
<p><code>for line in $(< raj.txt)  
do
    if [ $# -eq 5 ]
    then
        case $line in  
            PKGNAME=$1)         eval $line ;;  
            OLD_VERSION=$2)     eval $line ;;
            NEW_VERSION=$3)     eval $line ;;
            PRODUCT_NUMBER=$4)  eval $line ;;
            RELASE_DATE=$5)     eval $line ;;
            *) ;;  
        esac
    fi
done
 
 
echo PKGNAME=$1 >> temp.txt<br />
echo OLD_VERSION=$2 >> temp.txt<br />
echo NEW_VERSION=$3 >> temp.txt<br />
echo PRODUCT_NUMBER=$4 >> temp.txt<br />
echo RELASE_DATE=$5 >> temp.txt</p>
<p>mv temp.txt raj2.txt</code></p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/string-manipulation-exercise/">String manipulation exercise</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/string-manipulation-exercise/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
