seperate streetname from number

From: Date: Tue, 11 Mar 2003 16:17:52 +0000
Subject: seperate streetname from number
Groups: php.general 
Request: Send a blank email to php-general+get-139139@lists.php.net to get a copy of this message
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é

« previous php.general (#139139) next »