<?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>Web Design company - Goweb99 blog &#187; php strpos() function</title>
	<atom:link href="http://www.goweb99.com/blog/tag/php-strpos-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goweb99.com/blog</link>
	<description>Get your website designed for as low as $99.</description>
	<lastBuildDate>Fri, 30 Jul 2010 20:27:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Working with String variables</title>
		<link>http://www.goweb99.com/blog/php-tutorial/working-with-string-variables/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/working-with-string-variables/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 11:41:26 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[php strings]]></category>
		<category><![CDATA[php strlen() function]]></category>
		<category><![CDATA[php strpos() function]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[PHP Tuts]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=382</guid>
		<description><![CDATA[A string variable is used to store and manipulate character strings.
PHP provides some pre defined functions to manipulate string variables. There are someoperators also which directly work on strings.
For eg:
&#60;?php
$txt=&#8221;Its PHP&#8221;;
echo $txt;
?&#62;

Output:
Its PHP
We can use strings directly within double quotes or we can assign them to some variable and can use them through variables.
The Concatenation [...]]]></description>
			<content:encoded><![CDATA[<p>A string variable is used to store and manipulate character strings.</p>
<p>PHP provides some pre defined functions to manipulate string variables. There are someoperators also which directly work on strings.</p>
<div class="example">For eg:</p>
<p>&lt;?php<br />
$txt=&#8221;Its PHP&#8221;;<br />
echo $txt;<br />
?&gt;</p></div>
<div class="example">
Output:</p>
<p>Its PHP</p></div>
<p>We can use strings directly within double quotes or we can assign them to some variable and can use them through variables.</p>
<p><strong>The Concatenation Operator</strong></p>
<p>PHP provides an operator to manipulate string variables directly. This is called the concatenation operator represented by a “.” (dot).<br />
The concatenation operator (.), as the name implies, concatenates two strings, ie it joins two or more strings.</p>
<div class="example">For eg:</p>
<p>&lt;?php<br />
$txt1=&#8221;Its PHP!&#8221;;<br />
$txt2=&#8221; So easy to use!&#8221;;<br />
echo $txt1 . $txt2;<br />
?&gt;</p></div>
<div class="example">
Output:</p>
<p>Its PHP! So easy to use!</p></div>
<p><strong>The strlen() function</strong></p>
<p>Like in other languages PHP defines the strlen() function, which returns the length of a string.</p>
<div class="example">For eg:</p>
<p>&lt;?php<br />
echo strlen(&#8221;Its PHP!&#8221;);<br />
?&gt;</p></div>
<div class="example">
Output:</p>
<p>8</p></div>
<p>This function can be useful in various string operations like matching two strings or finding some string in a large text where the loop counter should iterate till the last character of the text only. Various other applications can also use this function.</p>
<p><strong>The strpos() function</strong></p>
<p>The strpos() function searches a given character within a string.</p>
<p>If the character is found, this function will return the position of the first match. If no match is found, it will return FALSE.</p>
<div class="example">For eg:</p>
<p>&lt;?php<br />
echo strpos(&#8221;Its PHP!&#8221;,&#8221;PHP&#8221;);<br />
?&gt;</p></div>
<div class="example">
Output:</p>
<p>4</p></div>
<p>The position of the string &#8220;world&#8221; is 6, as the counter starts from 0.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/working-with-string-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
