<?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>SublimeOrange &#187; PHP</title>
	<atom:link href="http://sublimeorange.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://sublimeorange.com</link>
	<description>Hello, I&#039;m Sean a student with a passion for &#60;br&#62;web development.</description>
	<lastBuildDate>Mon, 16 Nov 2009 10:12:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Split a name with PHP</title>
		<link>http://sublimeorange.com/php/split-a-name-with-php/</link>
		<comments>http://sublimeorange.com/php/split-a-name-with-php/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 23:28:09 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[split]]></category>

		<guid isPermaLink="false">http://sublimeorange.com/?p=106</guid>
		<description><![CDATA[I was recently looking for a way to clean up the sign up form for a project I&#8217;m working on. I realised I could merge the First name and Last name fields on the form but I needed a way to split the name up afterwards. So after a quick &#8220;Google&#8221; I came up with [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently looking for a way to clean up the sign up form for a project I&#8217;m working on. I realised I could merge the First name and Last name fields on the form but I needed a way to split the name up afterwards. So after a quick &#8220;Google&#8221; I came up with a way. The code below splits the name at the first space.</p>
<p><strong>Input:</strong> John S Smith<br />
<strong>Output:</strong> First Name: John Last Name: S Smith</p>
<pre><code>// PHP

$name = "John S Smith";

list($fname, $lname) = split(' ', $name,2);

echo "First Name: $fname, Last Name: $lname";
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://sublimeorange.com/php/split-a-name-with-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->