<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: 10 Productive PHP Functions that You Can Integrate into Your own Applications</title>
	<atom:link href="http://blog.moorberry.biz/2010/05/php-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.moorberry.biz/2010/05/php-functions/</link>
	<description>Writings from my very own code experiences. Now introducing: Ruby on Rails!</description>
	<lastBuildDate>Fri, 03 Feb 2012 16:11:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Howard Yeend</title>
		<link>http://blog.moorberry.biz/2010/05/php-functions/comment-page-1/#comment-270</link>
		<dc:creator>Howard Yeend</dc:creator>
		<pubDate>Fri, 30 Jul 2010 08:27:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.moorberry.biz/?p=281#comment-270</guid>
		<description>re: unique_id - there&#039;s also http://uk3.php.net/manual/en/function.uniqid.php

Your version has more options in that you can supply a length though.

uc_sentences is a nice idea. Here&#039;s a simpler way of doing it:

function uc_sentences($text) {

	$sentences = preg_split(&quot;/([\.\?\!]\s*)/&quot;, $text, null, PREG_SPLIT_DELIM_CAPTURE);
	
	$output = &quot;&quot;;
	foreach($sentences as $sentence) {
		$output .= ucfirst($sentence);
	}
	
	return $output;
}

echo &quot;[&quot;.uc_sentences(&quot; hi.i like to eat potato chips.        go eat potato chips! where are the chips? here they are&quot;).&quot;]&quot;;

Hope the code comes out ok.</description>
		<content:encoded><![CDATA[<p>re: unique_id &#8211; there&#8217;s also <a href="http://uk3.php.net/manual/en/function.uniqid.php" rel="nofollow">http://uk3.php.net/manual/en/function.uniqid.php</a></p>
<p>Your version has more options in that you can supply a length though.</p>
<p>uc_sentences is a nice idea. Here&#8217;s a simpler way of doing it:</p>
<p>function uc_sentences($text) {</p>
<p>	$sentences = preg_split(&#8220;/([\.\?\!]\s*)/&#8221;, $text, null, PREG_SPLIT_DELIM_CAPTURE);</p>
<p>	$output = &#8220;&#8221;;<br />
	foreach($sentences as $sentence) {<br />
		$output .= ucfirst($sentence);<br />
	}</p>
<p>	return $output;<br />
}</p>
<p>echo &#8220;[".uc_sentences(" hi.i like to eat potato chips.        go eat potato chips! where are the chips? here they are")."]&#8220;;</p>
<p>Hope the code comes out ok.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

