I have the following code:
$input = '2018-10-28T08:36:31.521Z';
$dateTime = preg_split('[T.]', $input);
echo ($dateTime[1]);
The output is:
08:36:31.521Z
the split with 'T' works, but dosen't work with '.' (The point)
I tried:
'[T\.]'
it dosen't work also (it dosen't ever split it).