[EMAIL PROTECTED] (André Sannerholt) writes:
> Does anybody know how to "stop" an "explosion" of a string: Let me explain:
> $variable_aray=explode('-', $variable);
> I want the variable to be devided in only two other ones! If for example:
> I want to have an array that looks like this:
> $variable_array should be "Willy"
> $variable_array should be "Brandt-Platz"
I guess you could use the "proper" regexp functions, like e.g.
preg_match("/^(\w+)-(.*?)-\d/", $variable, $matches)
then $matches and $matches should (haven't tested) contain what
My opinions may have changed, but not the fact that I am right.
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php