Created
January 2, 2016 21:02
-
-
Save Viktorminator/43255a2af1b01df80e50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//$input = '44.60855718,33.5143017'; | |
if (!($input)) $output = ''; | |
$someshit = explode(',', $input); | |
$someshit = array_reverse($someshit); | |
$mystring = implode('%2C', $someshit); | |
// echo $mystring; | |
$output = '<script src="http://panoramas.api-maps.yandex.ru/embed/1.x/?lang=ru_UA&l=stv&ll=' . $mystring .'&ost=dir%3A36.6150270900669%2C0~spn%3A89.99999987427145%2C39.71042873864211&size=450%2C400"></script>'; | |
return $output; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment