-
PHP在字符串中查找字符串strstr(),strchr(),strrchr()
在一个字符串中查找另一个字符串可以使用strstr(),strchr(),strrchr(),stristr()四个函数中的任意一个。 函数strstr()是最常见的,函数原型为: strstr ( string ,search,before_search); // string要被搜索的字符串,search所搜索的字符串,before_search默认值为 "fa...
2018-06-22 05:30:42
-
yum安装php5.5,php5.6和php7.0
本文主要介绍在CentOS系统下的php多个版本的安装使用 1.清理系统上的旧版本php # 可以使用以下方法 rpm -qa| grep php* yum list installed | grep php # 一般需要清理的有以下软件 yum remove php php-devel php-cli php-common php-gd php-ldap php-mbstring php-mcr...
2018-06-22 05:30:41
-
ajax 实现输入提示效果
网站主页 !DOCTYPE htmlhtml lang="en"head meta charset="UTF-8" titleTitle/title style * { margin : 0px auto; padding : 0px; } . l{ height : 50px; width : 198px; border -bottom: 1px solid black; text -align: center; line -height: 40px; vertical -align...
2018-06-22 05:30:40
-
thinkphp 默认首页 更改
原thinkphp的默认首页为:Home/index,如果想更改,则需要配置: 在Common/config之下 'DEFAULT_CONTROLLER' = 'Admin', // 更改后默认控制器名称 'DEFAULT_ACTION' = 'index', //更改后默认操作方法 这里假设更改默认首页为:Admin/index...
2018-06-22 05:30:39
-
PHP - 最全的正则表达式(手机号需要加上177-***)
一、 校验数字的表达式 1 数字: ^[0-9]*$ 2 n位的数字: ^\d{n}$ 3 至少n位的数字: ^\d{n,}$ 4 m-n位的数字: ^\d{m,n}$ 5 零和非零开头的数字: ^(0|[1-9][0-9]*)$ 6 非零开头的最多带两位小数的数字: ^([1-9][0-9]*)+(.[0-9]{1,2})?$ 7 带1-2位小数的正数或负数:...
2018-06-22 05:30:40
-
PHP数组的处理方法
1、将字符串分割成数组:$array=explode(separator,$string): separator:分隔符, $string:分割的字符串; 2、将数组组合成字符串:$string=implode(glue,$array): glue:胶合符, $array:数组; 3、统计数组的长度:count(): count函数有两个参数: 0(或COUNT_...
2018-06-22 05:30:39
-
七星彩网站代码出售,100%开源,纯代码出卖
这是最新版七星彩网站代码,现在出售,100%开源,纯代码出卖,代码可以二次开发,研究里面的技术代码核心都做开放,代码只仅供学习和研究使用,不得商业用,如因其引起产生任何法律纠纷等由使用个人承担。 代码结构由:PHP+MySQL 扣扣:3409-6951-01(记得备注) 网站...
2018-06-22 05:30:38
-
php实现文件上传
用php实现网页常见的文件上传功能 上传页面 ! DOCTYPE html html lang ="en" head meta charset ="UTF-8" title Title / title / head body !-- 上传文件 enctype="multipart/form-data"指的是编码方式为上传多种类型文件和数据流 -- form method ="post" action ="123...
2018-06-22 05:30:27
-
Rewrite API --重写规则API
Rewrite API(重写规则API) Description(描述) WordPress allows theme and plugin developers to programmatically specify new, custom rewrite rules. The following functions (which are mostly aliases forWP_Rewritemethods) can be used to achieve this. W...
2018-06-22 05:30:35
-
Yii2使用驼峰命名的形式访问控制器
yii2在使用的时候,访问控制器的时候,如果控制器的名称是驼峰命名法,那访问的url中要改成横线的形式。例如: public function actionRoomUpdate(){ // } //访问的时候就要www.test.com/room-update这样访问 最近在做某渠道的直连的时候,他们提供的文档上明确指出接...
2018-06-22 05:30:28
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash




