摘要: <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) 编辑
摘要: 写代码时,经常出现报错,但因为提示是英文,英文不好翻译出来结果又不准确很影响开发效率。下面是我遇到过的一些错误,希望能帮到大家。 1.Uncaught SyntaxError: Invalid or unexpected token 百度翻译的意思是捕获的查询无效或意外的标记。 这个是指你的程序错误 阅读全文
posted @ 2018-03-13 17:32 cctv-2014 阅读(581) 评论(0) 推荐(0) 编辑