上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: "; //返回文件完整路径,如 E://PHP/Test/Index.php print basename(__FILE__).""; //返回文件名,如 Index.php print dirname(__FILE__);//返回文件目录信息,如 E://PHP/Test } } $f = new FileDemo(); $f->Test();?> 阅读全文
posted @ 2014-01-03 22:39 玻璃鱼儿 阅读(152) 评论(0) 推荐(0) 编辑
摘要: name = $name; $this->age = $age; } public function setName($name) { $this->name = $name; } public function getName() { return $this->name; } public function setAge($age) { $this->age = $age; } public function getAge() { return $this->age; } p... 阅读全文
posted @ 2014-01-03 22:33 玻璃鱼儿 阅读(143) 评论(0) 推荐(0) 编辑
摘要: "; } }?> C# JAVA PHP SQL 阅读全文
posted @ 2014-01-03 22:32 玻璃鱼儿 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1.原生mysql方式"; } } mysql_close($con);?>2.优化过的mysql数据库访问方式,mysqliquery("set names gbk"); $sql = "insert into article(title,content,createBy,createTime) values(?,?,?,?)"; $stmt = $mysqli->prepare($sql); $stmt->bind_param("ssss", $title,$content,$createBy,$cre 阅读全文
posted @ 2014-01-03 22:29 玻璃鱼儿 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-01-03 22:22 玻璃鱼儿 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-01-03 22:20 玻璃鱼儿 阅读(127) 评论(0) 推荐(0) 编辑
摘要: ";//获取字符长度 $a = "abc"; $b = "abC"; print strcasecmp($a, $b)."";//忽略大小写比较字符串 print strtoupper($a);//字符转大写 $x = "sdsd' sdsdf sdfsd $$$$$$$$$@ ffff"; print nl2br($x);//将字符串中的换行符转换为,即转换为html中的换行,在读取文件内容在网页中显示时极为有用 ... 阅读全文
posted @ 2014-01-03 22:17 玻璃鱼儿 阅读(160) 评论(0) 推荐(0) 编辑
摘要: "; $reg = '/(?\d+)/i'; $k = "asd33sdfds4434dsdfd2222"; $m_array = array(); //匹配所有的 if(preg_match_all($reg, $k, $m_array)) { var_dump($m_array); } //将连续的数字替换为一个* $a = preg_replace('/(\d+)/i', '*', 'asd3343ddsf999dfdf000fff'); echo "".$a; //用,.; 阅读全文
posted @ 2014-01-03 22:04 玻璃鱼儿 阅读(262) 评论(0) 推荐(0) 编辑
摘要: "; $v = checkdate(9, 31, 2013) ? "格式正确" : "格式错误"; echo $v; //对时间进行格式化,这里会显示类似 2012-12-12 13:14:15格式 echo date('Y-m-d H:i:s')."";?> 阅读全文
posted @ 2014-01-03 21:54 玻璃鱼儿 阅读(222) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/w-wanglei/p/3391895.htmlhttp://www.cnblogs.com/and/p/3390676.htmlhttp://www.cnblogs.com/aspnetx/p/3391470.htmlhttp://www.cnblogs.com/Alex--Yang/p/3391402.htmlhttp://www.cnblogs.com/wujy/p/3391308.htmlhttp://www.cnblogs.com/xuld/p/3392194.htmlhttp://www.cnblogs.com/aehyok/p/339 阅读全文
posted @ 2013-10-28 13:49 玻璃鱼儿 阅读(154) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页