is there any nice way to split an string after \" \" or . ?
Like
$string = \"test.test\" result = test $string = \"test doe\" result = test <
$string = \"test.test\" result = test $string = \"test doe\" result = test
You want the strtok function. The manual gives this example:
"; $tok = strtok(" \n\t"); } ?>
Though in your case I suspect that using explode twice is easier and looks better.
explode