<?php$str = "dateto:'2015-10-07 15:05' xxxx datefrom:'2015-10-09 15:05' yyyy asdf";$matches = preg_split('/(?<!\d)(\s)/', $str);print_r($matches);
Standard input is empty
Array ( [0] => dateto:'2015-10-07 15:05' [1] => xxxx [2] => datefrom:'2015-10-09 15:05' [3] => yyyy [4] => asdf )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!