Skip to content

Instantly share code, notes, and snippets.

@stephandesouza
Last active December 24, 2015 15:29
Show Gist options
  • Select an option

  • Save stephandesouza/6820103 to your computer and use it in GitHub Desktop.

Select an option

Save stephandesouza/6820103 to your computer and use it in GitHub Desktop.
PHP: Extract + List // Lat Lang Geo
<?php
list($lat, $lon) = explode(',', '-22.903322,-43.173098');
echo $lat; //-22.903322
echo $lon; //-43.173098
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment