PHP
2017-03-07 14:29:54 0 举报
AI智能生成
PHP是一种广泛使用的服务器端脚本语言,以其简单易学、功能强大而受到广大开发者的喜爱。在Web开发中,PHP可以用于生成动态网页内容,处理表单数据,与数据库进行交互等。PHP支持多种数据库系统,如MySQL、PostgreSQL等,使得开发者能够轻松地将数据存储和检索功能集成到自己的应用程序中。此外,PHP还提供了丰富的内置函数和类库,如文件操作、字符串处理、日期时间处理等,方便开发者快速实现各种功能。总之,PHP作为一种强大且灵活的编程语言,为Web开发带来了极大的便利和效率。
作者其他创作
大纲/内容
常用函数
var_dump
memory_get_usage
fopen
feof
fgets
fclose
error_reporting
unset
define
defined
onstant
rand
round
ceil
判定是否存在
function_exists
class_exists
file_exists
isset
call_user_func_array
会话
session
session_start
session_id
$_SESSION['sessionName']
销毁session
session_destroy
setCookie
unset()
cookie
setcookie
setrawcookie
删除cookie
$_COOKIE
时间与日期
unix时间戳
当前日期
常用命令
php -h
php -v
php -info
php -ini
php -a
CodeIgniter
application
libraries
替换原生类库
扩展原生类库
helpers
config
system
index.php
PHP
语法
php标记
注释
数据类型
标量类型scalar
boolean
integer
float
string
复合类型
array
object
特殊类型
resource
null
伪类型
mixed
number
callback
常量
自定义常量
魔术常量
系统常量
判断是否为某种类型
is_bool
is_string
is_array
is_scalar
is_object
is_resource
is_null
is_numeric
is_callable
类
子主题
异常处理
数据库
mysql特定
原生mysql
连接
查询
插入
更新、删除
取得查询结果
关闭
扩展mysqli
mysqli类
mysqli_result类
mysqli_stmt类
PDO
pdo_drivers()
构造pdo对象
执行dml语句
执行select语句
PDOStatement(预编译处理对象)
参数绑定
获取数据
fetch
fetchAll
setFetchMode
事务处理
错误处理模式
PDO::ERRMODE_SILENT
PDO::ERRMODE_WARNING
PDO::ERRMODE_EXCEPTION
魔方方法
__construct
__destruct
__set
__get
__isset
__unset
__toString
__call
__autoload
字符串
str_replace
strlen/mb_strlen
substr/mb_substr
strpos
sprintf
implode
explode
addslashes
CodeIgniter Restful
获取get
新增post
更新put
删除delete
0 条评论
回复 删除
下一页