PHP代码在线运行


<?php date_default_timezone_set('Asia/Shanghai'); $str = '123123123'; echo implode('-', str_split($str, 3));