Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
変数にこの値 (33.8352932、-117.91450359999999) があります。これらの 2 つの数値を括弧なしで 2 つの変数に分割するにはどうすればよいですか??
これでうまくいきます:
$str = '(33.8352932, -117.91450359999999)'; $pieces = explode(',', str_replace(array('(', ')'), '', $str));
今、var_dump($pieces)あなたにこれを与えます:
var_dump($pieces)
array(2) { [0]=> string(10) "33.8352932" [1]=> string(20) " -117.91450359999999" }
This is maybe a very simple question, still I don't know how to solve this.
I have a model in my MVVM application which I want to bind to a tree view. However I can only bind the tree view to