PHP 5 Misc. Functions

PHP Miscellaneous Introduction

The misc. capacities were just set here on the grounds that none of the other classifications appeared to fit.


The misc. capacities are a piece of the PHP center. No establishment is required to utilize these functions.

Runtime Configuration

The conduct of the misc. capacities is influenced by settings in the php.ini file.

Misc. arrangement options:

Name Description Default Changeable
ignore_user_abort FALSE demonstrates that contents will be ended when they attempt to yield something after a customer has prematurely ended their connection "0" PHP_INI_ALL
highlight.string Color for featuring a string in PHP syntax "#DD0000" PHP_INI_ALL
highlight.comment Color for featuring PHP comments "#FF8000" PHP_INI_ALL
highlight.keyword Color for linguistic structure featuring PHP watchwords (for example bracket and semicolon) "#007700" PHP_INI_ALL Removed in PHP 5.4.0. Color for background "#FFFFFF" PHP_INI_ALL
highlight.default Default shading for PHP syntax "#0000BB" PHP_INI_ALL
highlight.html Color for HTML code "#000000" PHP_INI_ALL
browscap Name and area of program abilities record (for example browscap.ini) NULL PHP_INI_SYSTEM

PHP Miscellaneous Functions

Function Description
connection_aborted() Checks whether the customer has disconnected
connection_status() Returns the present association status
connection_timeout() Deprecated in PHP 4.0.5. Checks whether the content has coordinated out
constant() Returns the estimation of a constant
define() Defines a constant
defined() Checks whether a consistent exists
die() Prints a message and leaves the current script
eval() Evaluates a string as PHP code
exit() Prints a message and leaves the current script
get_browser() Returns the capacities of the client's browser
__halt_compiler() Halts the compiler execution
highlight_file() Outputs a record with the PHP sentence structure highlighted
highlight_string() Outputs a string with the PHP language structure highlighted
ignore_user_abort() Sets whether a remote customer can prematurely end the running of a script
pack() Packs information into a twofold string
php_check_syntax() Deprecated in PHP 5.0.5
php_strip_whitespace() Returns the source code of a record with PHP remarks and whitespace removed
show_source() Alias of highlight_file()
sleep() Delays code execution for various seconds
sys_getloadavg() Gets framework load average
time_nanosleep() Delays code execution for various seconds and nanoseconds
time_sleep_until() Delays code execution until a predetermined time
uniqid() Generates a novel ID
unpack() Unpacks information from a paired string
usleep() Delays code execution for various microseconds

PHP 5 Predefined Misc. Constants

PHP: shows the soonest form of PHP that bolsters the constant.

Constant Description PHP