fork download
  1. <?php
  2.  
  3. $variavel = "-4.08768, -63.141322 23/04/2017 22:00:00";
  4.  
  5. $split = preg_split("/\b\s/", $variavel);
  6.  
  7. var_dump($split);
Success #stdin #stdout 0s 82944KB
stdin
Standard input is empty
stdout
array(3) {
  [0]=>
  string(20) "-4.08768, -63.141322"
  [1]=>
  string(10) "23/04/2017"
  [2]=>
  string(8) "22:00:00"
}