<?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; php substract part of a string</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/php-substract-part-of-a-string/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 : Substract part of string with substr</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-substract-part-of-string-with-substr/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-substract-part-of-string-with-substr/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 07:16:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Basic PHP]]></category>
		<category><![CDATA[php part of a string]]></category>
		<category><![CDATA[php substr]]></category>
		<category><![CDATA[php substract part of a string]]></category>
		<category><![CDATA[substr]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=180</guid>
		<description><![CDATA[Hello, I didn&#8217;t posted for a long time because I am simply stucked into finding a subject. I made a search into my own blog and I saw that (miraculous btw) I didn&#8217;t writed yet about substr function which helps &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-substract-part-of-string-with-substr/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>I didn&#8217;t posted for a long time because I am simply stucked into finding a subject. I made a search into my own blog and I saw that (miraculous btw) I didn&#8217;t writed yet about substr function which helps you to print only a part of a string &#8211; substract it!</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
$stringIs <span class="phpOperator">=</span> <span class="phpString">"mystring"</span><span class="phpText">;</span>
$substract <span class="phpOperator">=</span> <span class="phpFunction">substr</span><span class="phpOperator">(</span>$stringIs, <span class="phpNumber">0</span>, <span class="phpNumber">3</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpFunction">print</span> $subtract; <span class="phpComment">//this will <span class="phpFunction">print</span> my
</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>First you declare the string you want substracted, then first number means from where to start and the last no. means where to finish.</p>
<p>Taddaaa!</p>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-substract-part-of-string-with-substr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

