摘要: <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>应用foreach语句遍历数组</title> <style type="text/css"><!--body { margi 阅读全文
posted @ 2018-04-27 15:43 cctv-2014 阅读(187) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2018-04-27 14:28 cctv-2014 阅读(77) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2018-04-27 14:19 cctv-2014 阅读(199) 评论(0) 推荐(0) 编辑
摘要: <?phpfunction example( &$m ){ //定义一个函数,同时传递参数$m的变量 $m = $m * 5 + 10;echo "在函数内:\$m = ".$m; //输出形参的值}$m = 1;example( $m ) ; //传值:将$m的值传递给形参$mecho "<p>在 阅读全文
posted @ 2018-04-27 12:11 cctv-2014 阅读(113) 评论(0) 推荐(0) 编辑
摘要: <?phpfunction example( $m ){ //定义一个函数 $m = $m * 5 + 10;echo "在函数内:\$m = ".$m; //输出形参的值}$m = 1;example( $m ) ; //传值:将$m的值传递给形参$mecho "<p>在函数外:\$m = $m 阅读全文
posted @ 2018-04-27 12:05 cctv-2014 阅读(138) 评论(0) 推荐(0) 编辑
摘要: if(!isset($string1)) — 检测变量是否已设置并且非 NULLunset($string3) — 销毁指定的变量。(integer)$num — 四舍五入转化为整数settype($num,'integer') — 使用settype函数转换类型if(is_numeric($boo 阅读全文
posted @ 2018-04-27 10:38 cctv-2014 阅读(117) 评论(0) 推荐(0) 编辑