<?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; strpos</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/strpos/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, 02 Sep 2010 05:23:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP Tutorial : Strpos and Strrpos</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-strpos-and-strrpos/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-strpos-and-strrpos/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 15:31:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Basic PHP]]></category>
		<category><![CDATA[Find position of first occurrence of a string]]></category>
		<category><![CDATA[occurrence]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[strpos]]></category>
		<category><![CDATA[strrpos]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=251</guid>
		<description><![CDATA[Basic thing, strpos and strrpos are two php functions which are used to find the position of first and/or last occurrence in a string &#8211; word (usefull for example when you want to build a function to get file extension). &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-strpos-and-strrpos/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Basic thing, strpos and strrpos are two php functions which are used to find the position of first and/or last occurrence in a string &#8211; word (usefull for example when you want to build a function to get file extension). I hear you saying enough talking, let me see the available examples :</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpComment">//get first occurrence
</span>
$string <span class="phpOperator">=</span> <span class="phpString">"this string"</span><span class="phpText">;</span>
$find <span class="phpOperator">=</span> <span class="phpString">"i"</span><span class="phpText">;</span>
<span class="htmlText">
print </span><span class="phpFunction">strpos</span><span class="phpOperator">(</span>$string,$find<span class="phpOperator">)</span><span class="phpText">;</span><span class="phpComment">//should print <span class="phpNumber">2</span>
</span>
<span class="htmlText">
print </span><span class="phpFunction">strrpos</span><span class="phpOperator">(</span>$string,$find<span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpComment">//should print <span class="phpNumber">8</span>
</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-strpos-and-strrpos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
