fork download
  1. <?php
  2.  
  3. $variavel = "-4.08768, -63.141322 23/04/2017 22:00:00";
  4.  
  5. $partes = explode(' ',$variavel);
  6.  
  7. echo $latitude=$partes[0];
  8. echo "\n";
  9. echo $longitude=$partes[1];
  10. echo "\n";
  11. echo $data=$partes[2];
  12. echo "\n";
  13. echo $hora=$partes[3];
  14. echo "\n";
  15.  
  16. echo $latLong=$latitude." ".$longitude;
Success #stdin #stdout 0.01s 83008KB
stdin
Standard input is empty
stdout
-4.08768,
-63.141322
23/04/2017
22:00:00
-4.08768, -63.141322