fork download
  1. <?php
  2.  
  3. $arr = preg_split("/([0-9]{2}:[0-9]{2})/", "asdf06:20Programold07:20Programnew", -1, PREG_SPLIT_DELIM_CAPTURE);
  4. print_r($arr);
  5.  
  6. ?>
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
Array
(
    [0] => asdf
    [1] => 06:20
    [2] => Programold
    [3] => 07:20
    [4] => Programnew
)