How to split a string with php
<p>is there any nice way to split an string after " " or . ?</p>

<p>Like</p>

<pre><code>$string = "test.test" result = test

$string = "test doe" result = test
</code></pre>

<p>Sure i can use explode two times, but I am sure thats not the best solutions ;)</p>
