May 11, 2021 PHP
This section describes some of the functions in PHP that cannot be classified, namely, miscellaneous functions.
We summarize functions that do not belong to other categories into miscellaneous function categories.
Miscellaneous functions are part of the PHP core. These functions can be used without installation.
The behavior of miscellaneous functions is affected .ini settings in the php file.
Miscellaneous configuration options:
name | default | describe | Can change |
---|---|---|---|
ignore_user_abort | "0" | FALSE indicates that the script will be terminated as long as the script is attempted after the client terminates the connection. | PHP_INI_ALL |
highlight.string | "#DD0000" | It is used to highlight the color used by a string that meets the PHP syntax. | PHP_INI_ALL |
highlight.comment | "#FF8000" | Colors used to highlight PHP comments. | PHP_INI_ALL |
highlight.keyword | "#007700" | For symbol highlighting the color of the PHP keyword (such as parentheses and semicolons). | PHP_INI_ALL |
highlight.bg | "#FFFFFF" | background color. | PHP_INI_ALL |
highlight.default | "#0000BB" | The default color of the PHP syntax. | PHP_INI_ALL |
highlight.html | "#000000" | HTML code color. | PHP_INI_ALL |
browscap | NULL | The name and location of the browser performance file (for example: browscap.ini). | PHP_INI_SYSTEM |
PHP: Indicates the earliest version of PHP that supports the function.
function | describe | PHP |
---|---|---|
connection_aborted() | Check if the client is disconnected. | 3 |
connection_status() | Returns the current connection status. | 3 |
connection_timeout() | Not approved in PHP 4.0.5.Check if the script is timeout. | 3 |
constant() | Returns a value of a constant. | 4 |
define() | Define a constant. | 3 |
defined() | Check if a constant is present. | 3 |
die() | Output a message and exit the current script. | 3 |
eval() | Calculate the string as a PHP code. | 3 |
exit() | Output a message and exit the current script. | 3 |
get_browser() | Returns the performance of the user browser. | 3 |
highlight_file() | PHP syntax is highlighted on the file. | 4 |
highlight_string() | PHP syntax is highlighted on the string. | 4 |
ignore_user_abort() | Set whether or not the execution of the script is terminated. | 3 |
pack() | Put the data into a binary string. | 3 |
php_check_syntax() | Not approved in PHP 5.0.5. | 5 |
php_strip_whitespace() | Returns the source code file that has been deleted PHP annotation and blank characters. | 5 |
show_source() | Highlight_file () alias. | 4 |
sleep() | The delay code is executed for several seconds. | 3 |
time_nanosleep() | The delay code performs several seconds and nanoseconds. | 5 |
time_sleep_until() | The delay code is performed until the specified time. | 5 |
uniqid() | Generate a unique ID. | 3 |
unpack() | Unread from the binary string. | 3 |
usleep() | The delay code performs several microseconds. | 3 |
PHP: Indicates the earliest version of PHP that supports this constant.
constant | describe | PHP |
---|---|---|
CONNECTION_ABORTED | ||
CONNECTION_NORMAL | ||
CONNECTION_TIMEOUT | ||
__COMPILER_HALT_OFFSET__ | 5 |