PHP Misc
ADVERTISEMENTS
In PHP Misc, there are available functions that do not seem to fit any specific category.
So It will be called misc functions of PHP.
Requirements
No external libraries are needed to build this extension.
Installation
There is no installation needed to use these functions; They are part of the PHP core.
Run-time Configuration
The behavior of these functions is affected by settings in php.ini.
Misc. Configuration Options
Name | Default | Changeable | Changelog |
---|---|---|---|
ignore_user_abort | "0" | PHP_INI_ALL | |
highlight.string | "#DD0000" | PHP_INI_ALL | |
highlight.comment | "#FF8000" | PHP_INI_ALL | |
highlight.keyword | "#007700" | PHP_INI_ALL | |
highlight.bg | "#FFFFFF" | PHP_INI_ALL | Removed in PHP 5.4.0. |
highlight.default | "#0000BB" | PHP_INI_ALL | |
highlight.html | "#000000" | PHP_INI_ALL | |
browscap | NULL | PHP_INI_SYSTEM |
Resource Types
This extension has no resource types defined.
Predefined Constants
This extension also provided some predefined constants.
- CONNECTION_ABORTED - (integer)
- CONNECTION_NORMAL - (integer)
- CONNECTION_TIMEOUT - (integer)
- __COMPILER_HALT_OFFSET__ - (integer)
Misc Functions
- connection_aborted — Check whether the client disconnected
- connection_status — Returns connection status bitfield
- constant — Returns the value of a constant
- define — Defines a named constant
- defined — Checks whether a given named constant exists
- die — Equivalent to exit
- eval — Evaluate a string as PHP code
- exit — Output a message and terminate the current script
- get_browser — Tells what the user's browser is capable of
- __halt_compiler — Halts the compiler execution
- highlight_file — Syntax highlighting of a file
- highlight_string — Syntax highlighting of a string
- hrtime — Get the system's high-resolution time
- ignore_user_abort — Set whether a client disconnect should abort script execution
- pack — Pack data into binary string
- php_check_syntax — Check the PHP syntax of (and execute) the specified file
- php_strip_whitespace — Return source with stripped comments and whitespace
- sapi_windows_cp_conv — Convert string from one codepage to another
- sapi_windows_cp_get — Get process codepage
- sapi_windows_cp_is_utf8 — Indicates whether the codepage is UTF-8 compatible
- sapi_windows_cp_set — Set process codepage
- sapi_windows_vt100_support — Get or set VT100 support for the specified stream associated with an output buffer of a Windows console.
- show_source — Alias of highlight_file
- sleep — Delay execution
- sys_getloadavg — Gets system load average
- time_nanosleep — Delay for a number of seconds and nanoseconds
- time_sleep_until — Make the script sleep until the specified time
- uniqid — Generate a unique ID
- unpack — Unpack data from binary string
- usleep — Delay execution in microseconds