php编程题考试(php基础考试题)

2023-11-19 01:42:33 数码极客 bianji01

 

pHP编程题!!

$month = array(January,February,March,April,May,June,July,August,September,October,November,December);$simple_month = array(Jan.,Feb.,Mar.,Apr.,May.,June.,July.,Aug.,Sept.,Oct.,Nov.,Dec.);for($i=11;$i>=0;$i--){echo $simpLe_mont

h[$i]. .$month[$i].

;也可以把两个数组合并成一个,用二维数组来表示,我没看清最后一条所以搞了两个。自己看吧。$month = array(Jan=>January,Feb=>February,Mar=>March,Apr=>April,May=>May,June,July=>July,Aug=>August,Sept=>September,Oct=>October,Nov=>November,Dec=>December);$month = array_reverse($month, true)foreach ($month as $key => $value)echo $value.=>.$key;

PHP笔试题,哪位大神知道 指点一下

帮忙看看这些php题

声明:易趣百科所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系315127732@qq.com
广告位招租
横幅广告