The misc. functions were only placed here because none of the other
categories seemed to fit.
The misc functions are part of the PHP core. There is no installation
needed to use these functions.
The behavior of the misc functions is affected by settings in the php.ini
file.
Misc. configuration options:
Function |
Description |
PHP |
connection_aborted() |
Checks whether the client has disconnected |
3 |
connection_status() |
Returns the current connection status |
3 |
connection_timeout() |
Deprecated in PHP 4.0.5 |
3 |
constant() |
Returns the value of a constant |
4 |
define() |
Defines a constant |
3 |
defined() |
Checks whether a constant exists |
3 |
die() |
Prints a message and exits the current script |
3 |
eval() |
Evaluates a string as PHP code |
3 |
exit() |
Prints a message and exits the current script |
3 |
get_browser() |
Returns the capabilities of the user's browser |
3 |
highlight_file() |
Outputs a file with the PHP syntax highlighted |
4 |
highlight_string() |
Outputs a string with the PHP syntax highlighted |
4 |
ignore_user_abort() |
Sets whether a remote client can abort the running of a
script |
3 |
pack() |
Packs data into a binary string |
3 |
php_check_syntax() |
Deprecated in PHP 5.0.5 |
5 |
php_strip_whitespace() |
Returns the source code of a file with PHP comments and whitespace
removed |
5 |
show_source() |
Alias of highlight_file() |
4 |
sleep() |
Delays code execution for a number of seconds |
3 |
time_nanosleep() |
Delays code execution for a number of seconds and nanoseconds |
5 |
time_sleep_until() |
Delays code execution until a specified time |
5 |
uniqid() |
Generates a unique ID |
3 |
unpack() |
Unpacks data from a binary string |
3 |
usleep() |
Delays code execution for a number of microseconds |
3 |