Write a PHP script to split the following string.
Sample string : '082307'
<?php $str1= '082307'; echo substr(chunk_split($str1, 2, ':'), 0, -1)."\n"; ?>
Sample Output:
08:23:07
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer