Split text string into $first and $last name in php
<p>I'm developing a private message system that allows users to search for a user by their full name, e.g.: "George Washington".</p>

<p>I have two variables named <code>$firstname</code> and <code>$lastname</code>, and the search function orders results by relevancy (how many times you have messaged that person). How do I get a text field to split "George Washington" into <code>$firstname="George"</code> and <code>$lastname="Washington"</code>?</p>
