freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

網(wǎng)站設(shè)計(jì)與建設(shè)(9)-資料下載頁

2025-01-20 10:59本頁面
  

【正文】 ?格式: string exec(string mand, string [array_name], int [return_var])。 system(string mand)。 返回 PHP函數(shù) exec、 system body ?php $DispInfo=array()。 $MyReturn=0。 exec (mkdir e:\mytest,$DispInfo,$MyReturn)。 exec(copy c:\csnews\phptest e:\mytest)。 exec (dir e:\mytest,$DispInfo,$MyReturn)。 for ($i=0。$i50。$i++) { echo $DispInfo[$i].br。 } echo 返回值: .$MyReturn.br。 ? /body 返回 PHP函數(shù) exit ?退出當(dāng)前的腳本文件 ?格式: Exit。 自定義函數(shù) ? PHP簡單函數(shù)樣例 ?函數(shù)返回多個(gè)值的實(shí)例 ?函數(shù)傳遞參數(shù)實(shí)例 (傳值 、 傳址 ) ?函數(shù)嵌套調(diào)用 返回 簡單樣例 ?php define (PI,)。 function circle_area($diameter) { $area=PI*$diameter*$diameter/4。 return $area。 } ? ?php $int_circle_diameter=10。 echo 直徑為 .$int_circle_diameter.的圓面積是.circle_area($int_circle_diameter)。 ? title函數(shù)返回多個(gè)值的方法 /title ?php define (PI,)。 function circle_calc($diameter) { $radius=$diameter/2。 $perimeter=PI*$diameter。 $area=PI*$diameter*$diameter/4。 return array($radius,$perimeter,$area)。 } ? /head body ?php $int_circle_diameter=10。 list ($first,$second,$third)=circle_calc($int_circle_diameter)。 echo 直徑為 .$int_circle_diameter.的圓半徑是 .$first.br。 echo 直徑為 .$int_circle_diameter.的圓周長是 .$second.br。 echo 直徑為 .$int_circle_diameter.的圓面積是 .$third.br。 ? /body /html 返回 返回多個(gè)值的實(shí)例 html head title向函數(shù)傳遞參數(shù) 傳值 /title ?php function fun_exam($number,$var) { $number++。 $var.=World。 echo $number$varbr。 } ? /head body ?php $string=Hello。 $number=10。 fun_exam($number,$string)。 echo $number。 ? /body /html 向函數(shù)傳遞參數(shù) 傳值 html head title向函數(shù)傳遞參數(shù) 傳址 /title ?php function fun_exam(amp。$number,$var) { $number++。 $var.=World。 echo $number$varbr。 } ? /head body ?php $string=Hello。 $number=10。 fun_exam($number,$string)。 echo $number。 ? /body /html 返回 向函數(shù)傳遞參數(shù) 傳址 amp。 返回 向函數(shù)傳遞參數(shù) 可以設(shè)定默認(rèn)值 html head meta equiv=ContentType content=text/html。 charset=gb2312 title向函數(shù)傳遞參數(shù) 為傳遞的參數(shù)設(shè)默認(rèn)值 /title ?php function fun_echo($text,$color=red,$size=3) { echo font color=\$color\ size=\$size\$text/fontbr。 } ? /head body ?php fun_echo(Now is red and size 4.,red,4)。 ? /body /html html head title函數(shù)嵌套 /title ?php function fun_product($count) { static $str_product=。 if ($count0){ $str_product=$str_product.($str_product==?:*).(string)$count。 $count。 fun_product($count)。 } else { echo $str_product。 } } ? /head body ?php fun_product(10)。 ? /body /html 遞歸
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1