par
Invité » 12 mai 2009, 13:41
Voila j'ai adapté avec une bidouille pas tres pro lol:
merci, j'ai trouvé a avec une bidouille:
$poistion="(45.6712922, 6.3868544)";
preg_match('/([0-9]{0,}\.[0-9]{0,})/',$position,$match);
$lng = str_replace($match[0], "", $position);
$lng = str_replace("(", "", $lng);
$lng = str_replace(")", "", $lng);
$lng = str_replace(",", "", $lng);
$lat=$match[0];
Voila j'ai adapté avec une bidouille pas tres pro lol:
merci, j'ai trouvé a avec une bidouille:
[php]$poistion="(45.6712922, 6.3868544)";
preg_match('/([0-9]{0,}\.[0-9]{0,})/',$position,$match);
$lng = str_replace($match[0], "", $position);
$lng = str_replace("(", "", $lng);
$lng = str_replace(")", "", $lng);
$lng = str_replace(",", "", $lng);
$lat=$match[0];[/php]