PHP Miscellaneous functions

Source: Internet
Author: User
Tags deprecated

Installation

Miscellaneous functions are part of the PHP core. These functions can be used without installation.

Runtime Configuration

The behavior of the miscellaneous function is affected by the settings in the php.ini file.

Miscellaneous configuration options:

name default Description can be changed
Ignore_user_abort "0" FALSE indicates that the script will be terminated as long as the script attempts to output after the client terminates the connection. Php_ini_all
Highlight.string "#DD0000" Color used to highlight strings that conform to PHP syntax. Php_ini_all
Highlight.comment "#FF8000" Color used to highlight PHP comments. Php_ini_all
Highlight.keyword "#007700" Color used for syntax highlighting of PHP keywords (such as parentheses and semicolons). Php_ini_all
Highlight.bg "#FFFFFF" Background color. Php_ini_all
Highlight.default "#0000BB" Default color for PHP syntax. Php_ini_all
Highlight.html "#000000" The color of the HTML code. Php_ini_all
Browscap Null The name and location of the browser performance file (for example: Browscap.ini). Php_ini_system

PHP Miscellaneous functions

php: Indicates the earliest version of PHP that supports this function.

function Description PHP
Connection_aborted () Check to see if the client is disconnected. 3
Connection_status () Returns the current connection status. 3
Connection_timeout () Deprecated in PHP 4.0.5. Check if the script timed out. 3
Constant () Returns the value of a constant. 4
Define () Defines a constant. 3
Defined () Checks if a constant exists. 3
Die () Outputs a message and exits the current script. 3
Eval () Calculate the string as PHP code. 3
Exit () Outputs a message and exits the current script. 3
Get_browser () Returns the performance of the user's browser. 3
Highlight_file () The file is highlighted in PHP syntax. 4
Highlight_string () The PHP syntax for the string is highlighted. 4
Ignore_user_abort () Sets whether disconnecting from the remote client terminates execution of the script. 3
Pack () Loads the data into a binary string. 3
Php_check_syntax () Deprecated in PHP 5.0.5. 5
Php_strip_whitespace () Returns the source code file for deleted PHP comments and whitespace characters. 5
Show_source () The alias of the Highlight_file (). 4
Sleep () Delay code execution for several seconds. 3
Time_nanosleep () The deferred code executes several seconds and nanoseconds. 5
Time_sleep_until () Delays code execution until the specified time. 5
Uniqid () Generates a unique ID. 3
Unpack () Unpacking data from a binary string. 3
Usleep () The deferred code executes several microseconds. 3

PHP Miscellaneous Constants

php: Indicates the earliest version of PHP that supports this constant.

Constants Description PHP
connection_aborted
Connection_normal
Connection_timeout
__compiler_halt_offset__ 5

PHP Miscellaneous functions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.