PHP:defined()的用法 PHP
defined (PHP 4, PHP 5)
defined — 检查某个名称的常量是否存在 说明 bool defined ( string $name ) 检查该名称的常量是否已定义。 Note: 如果你要检查一个变量...
PHP:constant()的用法 PHP
constant (PHP 4 = 4.0.4, PHP 5)
constant — 返回一个常量的值 说明 mixed constant ( string $name ) 通过 name 返回常量的值。 当你不知道常量名.....
PHP:connection_status()的用法 PHP
connection_status (PHP 4, PHP 5)
connection_status — 返回连接的状态位 说明 int connection_status ( void ) 获得当前连接的状态位。 返回值 .....
PHP:connection_aborted()的用法 PHP
connection_aborted (PHP 4, PHP 5)
connection_aborted — 检查客户端是否已经断开 说明 int connection_aborted ( void ) 检查客户端是否已经断开。...
PHP:define()的用法 PHP
define
(PHP 4, PHP 5)
define — 定义一个常量
说明
bool define
( string $name
, mixed $value
[, bool $case_insensitive = false
] )
在运行时定义一个常量。
PHP:json_encode()的用法 PHP
json_encode
(PHP 5 >= 5.2.0, PECL json >= 1.2.0)
json_encode — 对变量进行 JSON 编码
说明
string json_encode
( mixed $value
[, int $options = 0
] )
返回 val
PHP:json_decode()的用法 PHP
json_decode
(PHP 5 >= 5.2.0, PECL json >= 1.2.0)
json_decode — 对 JSON 格式的字符串进行编码
说明
mixed json_decode
( string $json
[, bool $assoc = false
[, in
PHP:json_last_error()的用法 PHP
json_last_error (PHP 5 = 5.3.0)
json_last_error — 返回最后发生的错误 说明 int json_last_error ( void ) 如果有,返回 JSON 编码解码时最后发生...
PHP:json_last_error_msg()的用法 PHP
json_last_error_msg
(PHP 5 >= 5.5.0)
json_last_error_msg — Returns the error string of the last json_encode() or json_decode() call
说明
string json_last_error_msg
( void
)
PHP:system()的用法 PHP
system
(PHP 4, PHP 5)
system — 执行外部程序,并且显示输出
说明
string system
( string $command
[, int &$return_var
] )
同 C 版本的 system() 函数一样