<?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 Tutorials Code Snippets and Php Tips &#187; get file extension</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/get-file-extension/feed/" rel="self" type="application/rss+xml" />
	<link>http://readytousesolutions.com/phpblog</link>
	<description>PHP tutorials - Examples of the most useful scripts</description>
	<lastBuildDate>Thu, 23 Sep 2010 06:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP Tutorial : Get file extension</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-get-file-extension/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-get-file-extension/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 20:08:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Short PHP Functions]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[file extension]]></category>
		<category><![CDATA[get file extension]]></category>
		<category><![CDATA[php  extension]]></category>
		<category><![CDATA[php  file extension]]></category>
		<category><![CDATA[php get file extension]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=93</guid>
		<description><![CDATA[With the next three lines of php code you will be able to get a file extension. &#60;?php $file = "somefile.gif"; $ext = end(explode('.', $file)); print "Your file extension is $ext"; ?&#62;]]></description>
			<content:encoded><![CDATA[<p>With the next three lines of php code you will be able to get a file extension.</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
$file <span class="phpOperator">=</span> <span class="phpString">"somefile.gif"</span><span class="phpText">;</span>
$ext <span class="phpOperator">=</span> <span class="phpFunction">end</span><span class="phpOperator">(</span><span class="phpFunction">explode</span><span class="phpOperator">(</span><span class="phpString">'<span class="phpOperator">.</span>'</span>, $file<span class="phpOperator">)</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="htmlText">
print </span><span class="phpString">"Your file extension is $ext"</span><span class="phpText">;</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<pre class="php php" style="font-family: monospace;"><span style="color: #000088;">
</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-get-file-extension/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

