PHP miscellaneous functions, php miscellaneous functions_PHP tutorial

WBOY
Release: 2016-07-13 09:55:00
Original
1323 people have browsed it

PHP miscellaneous functions, php miscellaneous functions

函数

描述

connection_aborted()

检查是否断开客户机。

connection_status()

返回当前的连接状态。

connection_timeout()

在 PHP 4.0.5 中不赞成使用。

constant()

返回一个常量的值。

define()

定义一个常量。

defined()

检查某常量是否存在。

die()

输出一条消息,并退出当前脚本。

eval()

把字符串按照 PHP 代码来计算。

exit()

输出一条消息,并退出当前脚本。

get_browser()

返回用户浏览器的性能。

highlight_file()

对文件进行语法高亮显示。

highlight_string()

对字符串进行语法高亮显示。

ignore_user_abort()

设置与客户机断开是否会终止脚本的执行。

pack()

把数据装入一个二进制字符串。

php_check_syntax()

在 PHP 5.0.5 中不赞成使用。

php_strip_whitespace()

返回已删除 PHP 注释以及空白字符的源代码文件。

show_source()

highlight_file() 的别名。

sleep()

延迟代码执行若干秒。

time_nanosleep()

延迟代码执行若干秒和纳秒。

time_sleep_until()

延迟代码执行指定的时间。

uniqid()

生成唯一的 ID。

unpack()

从二进制字符串对数据进行解包。

usleep()

延迟代码执行若干微秒。

Function
Description
connection_aborted() Check if the client is disconnected.
connection_status() Returns the current connection status.
connection_timeout() is deprecated in PHP 4.0.5.
constant() Returns the value of a constant.
define() Define a constant.
defined() Check whether a constant exists.
die() Output a message and exit the current script.
eval() Calculate the string according to PHP code.
exit() Output a message and exit the current script.
get_browser() Returns the performance of the user's browser.
highlight_file() Syntax highlighting for files.
highlight_string() Syntax highlighting for strings.
ignore_user_abort() Set whether disconnecting from the client will terminate the execution of the script.
pack() Load data into a binary string.
php_check_syntax() is deprecated in PHP 5.0.5.
php_strip_whitespace() Returns the source code file with PHP comments and whitespace characters removed.
show_source() An alias for highlight_file().
sleep() Delay code execution for a few seconds.
time_nanosleep() Delay code execution for a number of seconds and nanoseconds.
time_sleep_until() Delay code execution for the specified time.
uniqid() Generate a unique ID.
unpack() Unpack data from a binary string.
usleep() Delay code execution for a number of microseconds.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/993271.htmlTechArticlePHP miscellaneous functions, php miscellaneous functions Function description connection_aborted() Check whether the client is disconnected. connection_status() returns the current connection status. connection_timeout() in PHP4...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!