Mailinglisten-Archive |
Hm, irgendwie war das aber keine Antwort auf Deine Frage, daher hier noch der RegEx: $string = "(52.779, 11.247),(52.674, 11.266),(52.779, 11.248),(52.779, 11.249)"; preg_match_all("/\(([^)]+)\),?/", $string, $ret); var_dump($ret); array(2) { [0]=> array(4) { [0]=> string(17) "(52.779, 11.247)," [1]=> string(17) "(52.674, 11.266)," [2]=> string(17) "(52.779, 11.248)," [3]=> string(16) "(52.779, 11.249)" } [1]=> array(4) { [0]=> string(14) "52.779, 11.247" [1]=> string(14) "52.674, 11.266" [2]=> string(14) "52.779, 11.248" [3]=> string(14) "52.779, 11.249" } }
php::bar PHP Wiki - Listenarchive