F.22. Miscellaneous
Function | Returns | Description |
---|---|---|
get_browser([string browser_name [, bool return_array]]) | mixed | Gets information about the capabilities of a browser. |
constant(string const_name) | mixed | Given the name of a constant this function returns the constant's associated value. |
getenv(string varname) | string | Gets the value of an environment variable. |
putenv(string setting) | bool | Sets the value of an environment variable. |
getopt(string options [, array longopts]) | array | Gets options from the command line argument list. |
flush(void) | void | Flushes the output buffer. |
sleep(int seconds) | void | Delays for a given number of seconds. |
usleep(int micro_seconds) | void | Delays for a given number of micro seconds. |
time_nanosleep(long seconds, long nanoseconds) | mixed | Delays for a number of seconds and nanoseconds. |
highlight_file(string file_name [, bool return] ) | bool | Syntax highlights a source file. |
php_strip_whitespace(string file_name) | string | Returns source with stripped comments and whitespace. |
php_check_syntax(string file_name [, &$error_message]) | bool | Checks the syntax of the specified file. |
highlight_string(string string [, bool return] ) | bool | Syntax highlights a string or optionally returns it. |
uniqid([string prefix , bool more_entropy]) | string | Generates a unique ID. |
version_compare(string ver1, string ver2 [, string oper]) | int | Compares two PHP-standardized version number strings. |
connection_aborted(void) | int | Returns true if client disconnected. |
connection_status(void) | int | Returns the connection status bitfield. ... |
Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.