[ create a new paste ] login | about

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

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

function mid($start, $end, $str) {
    $str = substr($str, strpos($str, $start) + strlen($start));
    return substr($str, 0, strpos($str, $end));
}

$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";

print_r(mid('?center=', '&', $data));

?>


Output:
1
38.7376583333,-9.1658583333


Create a new paste based on this one


Comments: