我想拆分一个很长的数字,我在PHP中有多个字符串.我懂了:
<?php
$this = 020420151230;
?>
Run Code Online (Sandbox Code Playgroud)
我想得到这个结果:
//output:
$this['day'] = 02;
$this['month'] = 04;
$this['year'] = 2015;
$this['hour'] = 12;
$this['minute'] = 30;
Run Code Online (Sandbox Code Playgroud)
能否帮助和建议我应该使用哪种功能?