我想展示一个从0到59的列表,其中数字0到9具有前导零。这是我的代码,但目前它无法正常工作。有什么解决方案吗?
for ($i=0; $i<60; $i++){
if ($i< 10){
sprintf("%0d",$i);
}
array_push($this->minutes, $i);
}