<?php $variavel = "-4.08768, -63.141322 23/04/2017 22:00:00"; $split = preg_split("/\b\s/", $variavel); var_dump($split);
Standard input is empty
array(3) { [0]=> string(20) "-4.08768, -63.141322" [1]=> string(10) "23/04/2017" [2]=> string(8) "22:00:00" }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!