explode string variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone!

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:

$variable="Willy-Brandt-Platz-5"

I want to have an array that looks like this:

$variable_array[0] should be "Willy"
$variable_array[1] should be "Brandt-Platz"


Regards

André




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux