亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

spelty
關(guān)注

關(guān)注後可及時瞭解他的動態(tài)資訊

課程筆記
  • 所屬章節(jié)課程:php函數(shù)基本語法之自訂函數(shù)

    <?php function demo($a,$b,$c,$d="yellow") { $str ="<table border =2 width =500>"; for($i=0;$i<$a;$i++) { if($i%2==0) { $str .= "<tr bgcolor =$c>"; } else { $str .="<tr bgcolor =$d>"; } for($j=0;$j<$b;$j++) { $str .="<td>".$i."x".$j."=".$i*$j."</td>"; } $str .="</tr>"; } $str .="</table>"; return $str; } $str=demo(10,10,"blue"); echo $str; ?>

    2017-07-170個贊

  • 所屬章節(jié)課程:php自訂函數(shù)之內(nèi)部函數(shù)

    <?php function foo() { echo '我是函數(shù)foo喲,調(diào)一下我才會執(zhí)行定義函數(shù)bar的過程<br />'; function bar() { echo '在foo函數(shù)內(nèi)部有個函數(shù)叫bar的函數(shù)<br />'; } } foo(); bar(); bar();bar();bar();bar();bar();bar();bar(); ?> 為什么foo();只能調(diào)用一次呢,后面都會報錯,什么原因??

    2017-07-180個贊

  • 所屬章節(jié)課程:PHP流程控制之if語句

    <html> <head></head> <body> <form> <input type = 'text' name = "year"> <input type = 'submit' value = '是否是閏年?'> </form> <?php $year = $_GET['year']; if(!is_numeric($year)||!is_int($year)) { echo "please put Num OR intNum"; return; } if($year%4==0 || !($year%100)) { echo "Is run year"; } else echo "Is't run year"; ?> </body> </html>

    2017-06-250個贊

  • 所屬章節(jié)課程:PHP流程控制之嵌套if...else...elseif結(jié)構(gòu)

    <html> <head> <title>判斷成績-test</title> </head> <body> <form> <input type = 'text' name = 'cj'> <input type = 'submit' value ='是否合格?'> </form> <?php $cj = $_GET['cj']; if(!is_numeric($cj)||$cj>100) { echo "請正確輸入100分制成績!"; return; } if($cj<60) { echo "還不及格,必須努力了騷年~~!"; }elseif($cj>60 && $cj<=70) { echo "剛剛及格,還需要努力"; }elseif(70<$cj && $cj<90) { echo "再努力你就是王者"; }elseif ($cj>90) { echo "你現(xiàn)在是王者,但還得努力"; } ?> </body> </html>

    2017-06-250個贊