排序
深入理解PHP 数组之count 函数
count() PHP count() 函数用于计算数组中的单元数目或对象中的属性个数,返回数组的单元个数或对象中的属性个数。 语法: int count( mixed var [, int mode] )如果 var 是非数组的普通变量,则...
php实现图片上传并进行替换操作
首先建立两个文件: change.html 和 change.php change.html 文件的表单代码如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 <html> <head> <title>change...
PHP使用curl模拟post上传及接收文件的方法
PHP使用curl模拟post上传及接收文件的方法。具体如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46...
php实现中文转数字
分享一个辅助函数,使用php尽可能识别出字符串中的数字, 先上代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 ...
国内一些常用PHP的CMS的Nginx服务器的伪静态规则整理
收集了这几个常用程序的伪静态规则。 WordPress伪静态规则。 location / { index index.html index.php; if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $...
详解PHP的抽象类和抽象方法以及接口总结
PHP中的抽象类和抽象方法自己用的不多,但是经常会在项目中看到别人使用,同样,今天在看别人的代码的时候,发现使用了抽象类,就总结下: 抽象类: 1、如果一个类中有一个方法是抽象方法,则这...
PHP implode()函数用法讲解
Ajax+PHP实现的分类列表框功能示例
Ajax+PHP实现的分类列表框功能。具体如下: 一 代码 conn.php: <?php $conn = mysql_connect('localhost', 'root', 'root') or die('连接数据库服务器失败!'.mysql_error()); //连接MySQL...
PHP PDOStatement::execute讲解
PDOStatement::execute PDOStatement::execute — 执行一条预处理语句(PHP 5 >= 5.1.0, PECL pdo >= 0.1.0) 说明 语法 bool PDOStatement::execute ([ array $input_parameters ] ) 执行...
PHP PDOStatement::columnCount讲解
PDOStatement::columnCount PDOStatement::columnCount — 返回结果集中的列数。(PHP 5 >= 5.1.0, PECL pdo >= 0.2.0) 语法 int PDOStatement::columnCount ( void ) 使用PDOStatement::c...







