<?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 code snippets Archives - BinaryTides</title>
	<atom:link href="https://www.binarytides.com/tag/php-code-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/tag/php-code-snippets/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Sat, 02 Sep 2023 02:48:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>Php array of iso 639-1 language codes and names</title>
		<link>https://www.binarytides.com/php-array-of-iso-639-1-language-codes-and-names/</link>
					<comments>https://www.binarytides.com/php-array-of-iso-639-1-language-codes-and-names/#comments</comments>
		
		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Thu, 22 Nov 2012 13:14:01 +0000</pubDate>
				<category><![CDATA[Php Snippets]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php code snippets]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3732</guid>

					<description><![CDATA[<p>Here is a php array containing the language codes and language names as specified by the iso 639-1 standard. Useful when . &#60;?php /** ISO 639-1 Language Codes Useful in Locale analysis References : 1. http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes 2. http://blog.xoundboy.com/?p=235 */ $language_codes = array( &#039;en&#039; =&#62; &#039;English&#039; , &#039;aa&#039; =&#62; &#039;Afar&#039; , &#039;ab&#039; =&#62; &#039;Abkhazian&#039; , &#039;af&#039;... <span class="read-more"><a href="https://www.binarytides.com/php-array-of-iso-639-1-language-codes-and-names/">Read More &#187;</a></span></p>
<p>The post <a href="https://www.binarytides.com/php-array-of-iso-639-1-language-codes-and-names/">Php array of iso 639-1 language codes and names</a> appeared first on <a href="https://www.binarytides.com">BinaryTides</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.binarytides.com/php-array-of-iso-639-1-language-codes-and-names/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Php function to add st, nd, rd, th to the end of numbers</title>
		<link>https://www.binarytides.com/php-function-to-add-st-nd-rd-th-to-the-end-of-numbers/</link>
					<comments>https://www.binarytides.com/php-function-to-add-st-nd-rd-th-to-the-end-of-numbers/#comments</comments>
		
		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Sat, 04 Aug 2012 10:20:20 +0000</pubDate>
				<category><![CDATA[Php Snippets]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php code snippets]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2378</guid>

					<description><![CDATA[<p>Often numbers are to be written with a proper suffix, like 1st, 2nd, 3rd, 15th, 21st and so on. So here is a quick function to do the same for a number. Technique 1 /* This function will add st, nd, rd, th to the end of numbers */ function ordinal($i) { $l = substr($i,-1);... <span class="read-more"><a href="https://www.binarytides.com/php-function-to-add-st-nd-rd-th-to-the-end-of-numbers/">Read More &#187;</a></span></p>
<p>The post <a href="https://www.binarytides.com/php-function-to-add-st-nd-rd-th-to-the-end-of-numbers/">Php function to add st, nd, rd, th to the end of numbers</a> appeared first on <a href="https://www.binarytides.com">BinaryTides</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.binarytides.com/php-function-to-add-st-nd-rd-th-to-the-end-of-numbers/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>PHP Format numbers to Indian Numerical System</title>
		<link>https://www.binarytides.com/php-format-numbers-to-indian-numerical-system/</link>
					<comments>https://www.binarytides.com/php-format-numbers-to-indian-numerical-system/#comments</comments>
		
		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Wed, 01 Jul 2009 05:50:35 +0000</pubDate>
				<category><![CDATA[Php Snippets]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php code snippets]]></category>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=124</guid>

					<description><![CDATA[<p>The numerical system used in India differs from the Western system in terms of the placement of the thousands separator. Example : Number -&#62; 1000000 Indian System -&#62; 10,00,000 (Ten Lakh) Western System -&#62; 1,000,000 (1 Million) While echoing numbers in PHP it is possible to format numbers with such separators using functions like number_format.... <span class="read-more"><a href="https://www.binarytides.com/php-format-numbers-to-indian-numerical-system/">Read More &#187;</a></span></p>
<p>The post <a href="https://www.binarytides.com/php-format-numbers-to-indian-numerical-system/">PHP Format numbers to Indian Numerical System</a> appeared first on <a href="https://www.binarytides.com">BinaryTides</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.binarytides.com/php-format-numbers-to-indian-numerical-system/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Php &#8211; parse text and convert urls into hyperlinks</title>
		<link>https://www.binarytides.com/php-convert-urls-to-hyperlinks/</link>
					<comments>https://www.binarytides.com/php-convert-urls-to-hyperlinks/#comments</comments>
		
		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Tue, 28 Apr 2009 17:00:00 +0000</pubDate>
				<category><![CDATA[Php Snippets]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php code snippets]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=50</guid>

					<description><![CDATA[<p>The following function will parse a given text and convert all the urls into links. It does this using regular expressions. It converts email addresses to mailto links as well. Code function parse_links($str) { $str = str_replace(&#039;www.&#039;, &#039;http://www.&#039;, $str); $str = preg_replace(&#039;&#124;http://([a-zA-Z0-9-./]+)&#124;&#039;, &#039;&#38;lt;a href=&#38;quot;http://$1&#38;quot;&#38;gt;$1&#38;lt;/a&#38;gt;&#039;, $str); $str = preg_replace(&#039;/(([a-z0-9+_-]+)(.[a-z0-9+_-]+)*@([a-z0-9-]+.)+[a-z]{2,6})/&#039;, &#039;&#38;lt;a href=&#38;quot;mailto:$1&#38;quot;&#38;gt;$1&#38;lt;/a&#38;gt;&#039;, $str); return $str; }</p>
<p>The post <a href="https://www.binarytides.com/php-convert-urls-to-hyperlinks/">Php &#8211; parse text and convert urls into hyperlinks</a> appeared first on <a href="https://www.binarytides.com">BinaryTides</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.binarytides.com/php-convert-urls-to-hyperlinks/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
