Hi everyone!
I wondered how to sepearate string variables that contain streetnames and numbers:
If for example $variable="Hauptstraße 15";
$variable_string[0] should be "Hauptstraße" $variable_string[1] should be "15"
So I need a function that recognizes a number and explodes the variable at
that very position.
It's important that the thing also works when $variable="Hauptstraße15";
without any space. Else it would have been easy to do with the explode
function...
Regards
André
Try preg_split.
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php