Home > Backend Development > PHP Tutorial > PHP miscellaneous functions

PHP miscellaneous functions

WBOY
Release: 2016-08-08 09:25:08
Original
965 people have browsed it

Function

Description

connection_aborted()

Check if the client is disconnected.

connection_status()

Return the current connection status.

connection_timeout()

Deprecated in PHP 4.0.5.

constant()

Returns a constant value.

define()

Define a constant.

defined()

Check whether a certain 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()

Deprecated in PHP 5.0.5.

php_strip_whitespace()

Return the source code file with PHP comments and whitespace characters removed.

show_source()

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 unique ID.

unpack()

Unpack data from binary string.

usleep()

Delay code execution for a few microseconds.

The above has introduced PHP miscellaneous functions, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.

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