摘要:
function bubbleSort($arr){ $temp= 0; $len= count($arr); for($i=0; $i<$len-1; $i++){ for($j=0; $j<$len-1-$i; $j++){ if($arr[$j]> $arr[$j+1]){ $temp= $a 阅读全文
posted @ 2020-11-13 11:33
wing1377
阅读(75)
评论(0)
推荐(0)
摘要:
PHP日期和时间管理 UNIX时间戳 声明方式 int mktime([ int $hour[, int $minute [, int $month [, int $day [, int $year [, int $is_dst ]]]]]]) <?php # 指定参数顺序:时分秒 月日年 echo 阅读全文
posted @ 2020-11-13 09:39
wing1377
阅读(86)
评论(0)
推荐(0)
摘要:
字符串方法 字符串分割为数组 explode() 声明方式 array explode(string $separator, string $str[, int $limit]) <?php $str= "apple,pear,banana,orange"; $arr= explode(",", $ 阅读全文
posted @ 2020-11-13 09:38
wing1377
阅读(99)
评论(0)
推荐(0)
摘要:
<?php function peach($n){ if($n == 1) return 1; return 2*peach($n-1)+1; } echo peach(3); ?> 阅读全文
posted @ 2020-11-13 09:36
wing1377
阅读(381)
评论(0)
推荐(0)

浙公网安备 33010602011771号