<?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 Snippets Archives - TECHAntena</title>
	<atom:link href="https://www.techantena.com/tag/php-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.techantena.com/tag/php-snippets/</link>
	<description>Tech &#38; Programming Tutorials</description>
	<lastBuildDate>Mon, 30 Jan 2023 16:18:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.techantena.com/wp-content/uploads/2019/03/logo_icon.png</url>
	<title>PHP Snippets Archives - TECHAntena</title>
	<link>https://www.techantena.com/tag/php-snippets/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">109684828</site>	<item>
		<title>Merge Arrays with the array_merge() Function in PHP</title>
		<link>https://www.techantena.com/4959/array_merge-function-php/</link>
					<comments>https://www.techantena.com/4959/array_merge-function-php/#respond</comments>
		
		<dc:creator><![CDATA[Adeeb C]]></dc:creator>
		<pubDate>Mon, 30 Jan 2023 16:18:10 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Examples]]></category>
		<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[php programs]]></category>
		<category><![CDATA[PHP Snippets]]></category>
		<guid isPermaLink="false">https://www.techantena.com/?p=4959</guid>

					<description><![CDATA[<p>Learn how to use the array_merge() function in PHP to combine arrays. See examples and sample code to help you use this function in your PHP projects. Whether you need to merge multiple arrays or add new elements to an existing array, array_merge() is the perfect tool to get the job done. array_merge is a [&#8230;]</p>
<p>The post <a href="https://www.techantena.com/4959/array_merge-function-php/">Merge Arrays with the array_merge() Function in PHP</a> appeared first on <a href="https://www.techantena.com">TECHAntena</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.techantena.com/4959/array_merge-function-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4959</post-id>	</item>
		<item>
		<title>Find the Position of a Substring in a String with the strpos() Function in PHP</title>
		<link>https://www.techantena.com/4956/strpos-function-php/</link>
					<comments>https://www.techantena.com/4956/strpos-function-php/#respond</comments>
		
		<dc:creator><![CDATA[Adeeb C]]></dc:creator>
		<pubDate>Mon, 30 Jan 2023 16:12:10 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Examples]]></category>
		<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[php programs]]></category>
		<category><![CDATA[PHP Snippets]]></category>
		<guid isPermaLink="false">https://www.techantena.com/?p=4956</guid>

					<description><![CDATA[<p>Learn how to use the strpos() function in PHP to find the position of a substring in a string. See examples and sample code to help you use this function in your PHP projects. Whether you need to check if a string contains a certain word or just want to find the index of a [&#8230;]</p>
<p>The post <a href="https://www.techantena.com/4956/strpos-function-php/">Find the Position of a Substring in a String with the strpos() Function in PHP</a> appeared first on <a href="https://www.techantena.com">TECHAntena</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.techantena.com/4956/strpos-function-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4956</post-id>	</item>
		<item>
		<title>Format Strings with the sprintf() Function in PHP</title>
		<link>https://www.techantena.com/4949/sprintf-function-php/</link>
					<comments>https://www.techantena.com/4949/sprintf-function-php/#respond</comments>
		
		<dc:creator><![CDATA[Adeeb C]]></dc:creator>
		<pubDate>Mon, 30 Jan 2023 16:01:34 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Examples]]></category>
		<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[php programs]]></category>
		<category><![CDATA[PHP Snippets]]></category>
		<guid isPermaLink="false">https://www.techantena.com/?p=4949</guid>

					<description><![CDATA[<p>Learn how to use the sprintf() function in PHP to format strings. See examples and sample code to help you use this function in your PHP projects. Whether you need to include variables in a string or format numbers and dates, sprintf() is the perfect tool to get the job done. sprintf() is a function [&#8230;]</p>
<p>The post <a href="https://www.techantena.com/4949/sprintf-function-php/">Format Strings with the sprintf() Function in PHP</a> appeared first on <a href="https://www.techantena.com">TECHAntena</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.techantena.com/4949/sprintf-function-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4949</post-id>	</item>
		<item>
		<title>Extract a Substring from a String with the substr() Function in PHP</title>
		<link>https://www.techantena.com/4952/substr-function-php/</link>
					<comments>https://www.techantena.com/4952/substr-function-php/#respond</comments>
		
		<dc:creator><![CDATA[Adeeb C]]></dc:creator>
		<pubDate>Sun, 29 Jan 2023 05:20:32 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Examples]]></category>
		<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[php programs]]></category>
		<category><![CDATA[PHP Snippets]]></category>
		<guid isPermaLink="false">https://www.techantena.com/?p=4952</guid>

					<description><![CDATA[<p>Learn how to use the substr() function in PHP to extract a substring from a string. See examples and sample code to help you use this function in your PHP projects. Whether you need to get a specific portion of a string or just want to extract a certain number of characters, substr() is the [&#8230;]</p>
<p>The post <a href="https://www.techantena.com/4952/substr-function-php/">Extract a Substring from a String with the substr() Function in PHP</a> appeared first on <a href="https://www.techantena.com">TECHAntena</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.techantena.com/4952/substr-function-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4952</post-id>	</item>
		<item>
		<title>Get the Directory Name with the dirname() Function in PHP</title>
		<link>https://www.techantena.com/4947/dirname-function-php/</link>
					<comments>https://www.techantena.com/4947/dirname-function-php/#respond</comments>
		
		<dc:creator><![CDATA[Adeeb C]]></dc:creator>
		<pubDate>Sun, 29 Jan 2023 04:50:01 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Examples]]></category>
		<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[php programs]]></category>
		<category><![CDATA[PHP Snippets]]></category>
		<guid isPermaLink="false">https://www.techantena.com/?p=4947</guid>

					<description><![CDATA[<p>Learn how to use the dirname() function in PHP to extract the directory name from a file path. See examples and sample code to help you use this function in your PHP projects. Whether you need to include files from different directories or create a new file in a specific directory, dirname() is the perfect [&#8230;]</p>
<p>The post <a href="https://www.techantena.com/4947/dirname-function-php/">Get the Directory Name with the dirname() Function in PHP</a> appeared first on <a href="https://www.techantena.com">TECHAntena</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.techantena.com/4947/dirname-function-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4947</post-id>	</item>
		<item>
		<title>Join Array Elements with the implode() Function in PHP</title>
		<link>https://www.techantena.com/4945/implode-function-php/</link>
					<comments>https://www.techantena.com/4945/implode-function-php/#respond</comments>
		
		<dc:creator><![CDATA[Adeeb C]]></dc:creator>
		<pubDate>Sun, 29 Jan 2023 04:43:41 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Examples]]></category>
		<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[php programs]]></category>
		<category><![CDATA[PHP Snippets]]></category>
		<guid isPermaLink="false">https://www.techantena.com/?p=4945</guid>

					<description><![CDATA[<p>Learn how to use the implode() function in PHP to join elements of an array into a single string. Use this powerful tool to create CSV files, JSON data, or any other format of data. See examples and sample code to help you implement implode() in your PHP project. The implode() function in PHP is [&#8230;]</p>
<p>The post <a href="https://www.techantena.com/4945/implode-function-php/">Join Array Elements with the implode() Function in PHP</a> appeared first on <a href="https://www.techantena.com">TECHAntena</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.techantena.com/4945/implode-function-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4945</post-id>	</item>
		<item>
		<title>Replacing Text in PHP Strings using the str_replace() Function</title>
		<link>https://www.techantena.com/4942/str_replace-function-php/</link>
					<comments>https://www.techantena.com/4942/str_replace-function-php/#respond</comments>
		
		<dc:creator><![CDATA[Adeeb C]]></dc:creator>
		<pubDate>Sun, 29 Jan 2023 04:35:35 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Examples]]></category>
		<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[php programs]]></category>
		<category><![CDATA[PHP Snippets]]></category>
		<guid isPermaLink="false">https://www.techantena.com/?p=4942</guid>

					<description><![CDATA[<p>Discover how to use PHP&#8217;s str_replace() function to replace specific text in a string with new text. This powerful function can be used to make multiple replacements at once and is useful for tasks such as sanitizing user input or updating content on a website. Learn how to use str_replace() with examples and sample code. [&#8230;]</p>
<p>The post <a href="https://www.techantena.com/4942/str_replace-function-php/">Replacing Text in PHP Strings using the str_replace() Function</a> appeared first on <a href="https://www.techantena.com">TECHAntena</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.techantena.com/4942/str_replace-function-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4942</post-id>	</item>
		<item>
		<title>Checking File or Directory Existence in PHP using the file_exists() Function</title>
		<link>https://www.techantena.com/4934/file_exists-function-php/</link>
					<comments>https://www.techantena.com/4934/file_exists-function-php/#respond</comments>
		
		<dc:creator><![CDATA[Adeeb C]]></dc:creator>
		<pubDate>Sun, 29 Jan 2023 04:16:21 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[php programs]]></category>
		<category><![CDATA[PHP Snippets]]></category>
		<guid isPermaLink="false">https://www.techantena.com/?p=4934</guid>

					<description><![CDATA[<p>Learn how to check if a file or directory exists in PHP using the file_exists() function. This is a simple and easy way to verify if a file or folder is present in a certain location. It&#8217;s useful for many file management tasks and can be easily implemented in your PHP code. Get started with [&#8230;]</p>
<p>The post <a href="https://www.techantena.com/4934/file_exists-function-php/">Checking File or Directory Existence in PHP using the file_exists() Function</a> appeared first on <a href="https://www.techantena.com">TECHAntena</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.techantena.com/4934/file_exists-function-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4934</post-id>	</item>
		<item>
		<title>Calculate Rank of Array Values in PHP</title>
		<link>https://www.techantena.com/4897/calculate-rank-array-values-php/</link>
					<comments>https://www.techantena.com/4897/calculate-rank-array-values-php/#respond</comments>
		
		<dc:creator><![CDATA[Adeeb C]]></dc:creator>
		<pubDate>Tue, 14 Jun 2022 01:51:06 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Array Functions]]></category>
		<category><![CDATA[PHP Examples]]></category>
		<category><![CDATA[PHP Snippets]]></category>
		<guid isPermaLink="false">https://www.techantena.com/?p=4897</guid>

					<description><![CDATA[<p>Sometimes we may need to calculate rank from an array of some elements like student mark etc. Here is how to calculate rank from array in PHP easily. Calculate Rank of Array Values in PHP &#160; Calculate Rank From Key =&#62; Value Array //student mark array $student_mark = [ 'REG_10001' =&#62; 89, 'REG_10002' =&#62; 95, [&#8230;]</p>
<p>The post <a href="https://www.techantena.com/4897/calculate-rank-array-values-php/">Calculate Rank of Array Values in PHP</a> appeared first on <a href="https://www.techantena.com">TECHAntena</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.techantena.com/4897/calculate-rank-array-values-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4897</post-id>	</item>
		<item>
		<title>Sort Multi Dimensional Array in PHP</title>
		<link>https://www.techantena.com/4887/sort-multi-dimensional-array-php/</link>
					<comments>https://www.techantena.com/4887/sort-multi-dimensional-array-php/#respond</comments>
		
		<dc:creator><![CDATA[Adeeb C]]></dc:creator>
		<pubDate>Thu, 09 Jun 2022 17:31:16 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Array Functions]]></category>
		<category><![CDATA[PHP Examples]]></category>
		<category><![CDATA[PHP Snippets]]></category>
		<guid isPermaLink="false">https://www.techantena.com/?p=4887</guid>

					<description><![CDATA[<p>You may already know how to sort an array in PHP using various array sorting functions like sort, asort, ksort, arsort, krsort. Here we discuss how to sort a multi dimensional array in PHP. Sorting Multi Dimensional Array in PHP by Key-Value I have created a function like following to sort multi dimensional array in [&#8230;]</p>
<p>The post <a href="https://www.techantena.com/4887/sort-multi-dimensional-array-php/">Sort Multi Dimensional Array in PHP</a> appeared first on <a href="https://www.techantena.com">TECHAntena</a>.</p>
]]></description>
		
					<wfw:commentRss>https://www.techantena.com/4887/sort-multi-dimensional-array-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4887</post-id>	</item>
	</channel>
</rss>
