Blogger Information
Blog 4
fans 0
comment 0
visits 1579
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
16期8月5日作业
泉懿
Original
406 people have browsed it

<?php

$arr = [23,3,45,6,78,8,34];


function getarr()

{

    $newarr=array();

    $i=0;

    global $arr;

    foreach($arr as $arrs)

    {

        if($arrs%2==0):            

            $newarr[$i]=$arrs;

            $i++;

        endif;

    }   

    return $newarr;

};

echo '<pre>';

print_r(getarr()) ;


Correcting teacher:PHPzPHPz

Correction status:unqualified

Teacher's comments:作业使用markdown语法写,解决方法在群公告的直播答疑汇总的8月2日中
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post