如何在数组索引中添加特定循环

时间:2017-10-02 01:29:54

标签: php arrays

大家好,这是我的代码:

withdrawMoney

这是输出:

$Months = array(
    'Jan',
    'Feb',
    'Mar',
    'Apr',
    'May',
    'Jun',
    'Jul',
    'Aug',
    'Sep',
    'Oct',
    'Nov',
    'Dec'
);


foreach($Months as $value){  
    echo "$value ";
    echo date('Y');
    echo "<br>";

    foreach(range(1,31) as $Days) {
        echo $Days;
         echo " ";
    }

    echo "<br>";
}

等等。

如何编辑索引以输出以下几个月及其日期。

1 个答案:

答案 0 :(得分:4)

guard let image = MasterViewController.MyVariables.flowerImage else{
    //add some notification about error here
    return
}
imageView1.image = image