programming-examples/php/String/PHP script to split the following string..php

4 lines
82 B
PHP
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<?php
$str1= '082307';
echo substr(chunk_split($str1, 2, ':'), 0, -1)."\n";
?>