[ create a new paste ] login | about

Link: http://codepad.org/RiJHTX6p    [ raw code | output | fork ]

PHP, pasted on Sep 9:
1
2
3
4
5
6
7
8
9
10
<?php

$data = "cursor:pointer; background:url(http://maps.google.com/staticmap?center=38.7376583333,-9.1658583333&maptype=satellite&zoom=14&size=300x300&key=ABQIAAAAvQ9c8pqKsi8K2dzb7UM9MhS13VDmd70a9rmDETSCgg2iXt3XnhQSnX4vFKfWO-3vdWNV5HHBnSLWLQ&sensor=true&hl=pt) no-repeat";

$center = substr($data, strpos($data, '?center=') + 8);
$center = substr($center, 0, strpos($center, '&'));

print_r($center);

?>


Output:
1
38.7376583333,-9.1658583333


Create a new paste based on this one


Comments: