Viết một script để tách một chuỗi
Ví dụ:
Mã nguồn PHP:
<?php $str1= '082307'; echo substr(chunk_split($str1, 2, ':'), 0, -1)."\n"; ?>
Xem ví dụ