As others have said, if you know for sure that there will be no characters Zanywhere except for the date, you can simply do:
$records = explode('Z', $data);
But if you have them elsewhere, you need to get a little involved.
$regex = '#(?<=\d{2}:\d{2}:\d{2}Z)\s#i';
$records = preg_split($regex, $data, -1, PREG_SPLIT_NO_EMPTY);
Basically, this entry looks for the temporary part ( 00:00:00), followed by Z. Then it splits into the next space character ...
source
share