文章分类 -  PHP

摘要: 阅读全文
posted @ 2018-02-12 11:04 Justice-V 阅读(96) 评论(0) 推荐(0)
摘要:1. 还有的[a-z],[A-Z],[0-9]以及[a-zA-z0-9_](/W)括号代表相同(/w)与(/W)相反 模式 解释 \d 匹配任何数字字符 \D 与上相反 \s 匹配任何空白字符 \S 同上相反 \b 匹配是否到达单词边界 \B 匹配是否没有到达单词边界 3.修饰符 i 表示不区分大小 阅读全文
posted @ 2018-02-08 14:56 Justice-V 阅读(73) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-02-08 12:51 Justice-V 阅读(71) 评论(0) 推荐(0)
摘要:"; //总空间使用 echo round(disk_total_space('C:')/1024/1024/1024,1).'GB'; echo ""; //时间 date_default_timezone_set('Asia/Shanghai'); echo date("Y-m-d h:i:s",fileatime($PATH)).""; echo dat... 阅读全文
posted @ 2018-02-06 13:48 Justice-V 阅读(88) 评论(0) 推荐(0)
摘要:2.each() 3.array_flip array_unique list() 1 <?php 2 //array_unique() 将重复的数组进行删减 3 //array_filp() 将键和值进行颠倒 4 //list() 键值对里的键和值重新赋予新变量 5 //reset 重新载入数组的 阅读全文
posted @ 2018-02-02 13:23 Justice-V 阅读(82) 评论(0) 推荐(0)
摘要:1.foreach循环 /*foreach ($array as $value) { 要执行代码; } */ <?php $x=array("one","two","three"); foreach ($x as $value) { echo $value . "<br>"; } ?> 2.PHP 阅读全文
posted @ 2018-01-27 11:39 Justice-V 阅读(61) 评论(0) 推荐(0)
摘要:1.PHP初始结构 <?php //第一种结构 ?> <? //第二种结构 ?> 2.PHP数据类型 <?php $x=12; echo $x; ?> //打印出 int /* 数据类型: String(字符串), Integer(整型), Float(浮点型), Boolean(布尔型), Arr 阅读全文
posted @ 2018-01-25 19:32 Justice-V 阅读(147) 评论(0) 推荐(0)
摘要:在WAMP中添加其它PHP版本 1. 停止WAMP服务器.2. 去网站windows.php.net 下载php-5.4.31-nts-Win32-VC9-x86.zip. 不要下载THE INSTALLER.3. 在wamp/bin/php创建php5.4.31文件夹 4. 把下载的zip包解压到 阅读全文
posted @ 2018-01-24 15:31 Justice-V 阅读(341) 评论(0) 推荐(0)