Availability in versions: PHP 4.1.0
Hyperbolic cosine
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument to process
Return values
float
The hyperbolic cosine of arg
Other resources
Official documentation of the cosh…
This function converts line breaks (\n) in a string to the HTML tag <br>.
Parameters
Parameter
Data type
Default value
Note
$string
string
not
Input string.
$is_xhtml
bool
null
Switches the escaping method according to the context.
…
Availability in PHP 4.0
Arcus cosinus (arcus cosinus).
The function returns the arcus cosine of the parameter $arg in radians. The acos() function is the inverse of the cos() function, which means that $a === cos(acos($a)) (note the rounding!) for…
Availability in versions: PHP 5.5.0
Rescales (resizes) the image to the given width and height.
Parameters
Parameter
Data type
Default value
Note
$image
resource
not
The source of the image (data type resource) that you get by one of the…
Available in PHP 4, 5, 7.
Converts special characters that have meaning in HTML to HTML entities that can be rendered in the normal way.
Parameters
Parameter
Data type
Default value
Note
$string
string
not
String to be converted.
$flags
int…
This function returns the physical dimensions of the image.
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
This parameter specifies the file you wish to retrieve information about. It can reference a local file or …
Available from: PHP 4.2.0
This function returns a string that represents the inserted variable as if it were written in a PHP script. The output can be used directly for a PHP parser.
Parameters
Parameter
Data type
Default value
Note
…
The mail() function sends an e-mail message through the default server configuration. To work correctly, the function needs to be enabled on the server and the mail server needs to be configured for sending.
The function is for sending only. You…
Availability in PHP 4.0
Sort an array and maintain index association
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The input array.
$sort_flags
int
null
You may modify the behavior of the sort using the optional…
Availability in PHP 4.0
Arc tangent
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument to process
Return values
float
The arc tangent of arg in radians.
Other resources
Official documentation of the function atan
Availability in PHP 5.0
Retrieve list of registered socket transports
Parameters
The function has no input parameters.
Return values
array
an indexed array of socket transports names.
Additional resources
Official documentation for stream-get…
Availability in PHP 4.0
Sort an array by values using a user-defined comparison function
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The input array.
$cmp_function
callback
not
The comparison function must return an…
Availability in PHP 4.0
Creating a system log message
Parameters
Parameter
Data type
Default value
Note
$priority
int
not
Priority is a combination of device and level. See table below for more info.
$message
string
not
The message to be…
Availability in PHP 4.0
Base-10 logarithm
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument to process
Return values
float
The base-10 logarithm of arg
Other resources
Official documentation of the log10 function
Availability in PHP 4.0
Find the last occurrence of a character in a string
Parameters
Parameter
Data type
Default value
Note
$haystack
string
not
The string to search in
$needle
mixed
not
If needle contains more than one character, only…
Availability in PHP 4.0
Unpacking data from a binary string
Parameters
Parameter
Data type
Default value
Note
$format
string
not
See package for explanation of format codes.
$data
string
not
Packaged data.
$offset
int
not
Return…
Availability in PHP 4.0
Opens process file pointer
Parameters
Parameter
Data type
Default value
Note
$command
string
not
The command
$mode
string
not
The mode
Return values
resource
a file pointer identical to that returned by
fopen,…
Availability in PHP 4.0
Octal to decimal
Parameters
Parameter
Data type
Default value
Note
$octal_string
string
not
The octal string to convert
Return values
number
The decimal representation of octal_string
Other resources
Official octdec…
Availability in PHP 4.0
Returns connection status bitfield
Parameters
The function has no input parameters.
Return values
int
the connection status bitfield, which can be used against the
CONNECTION_XXX constants to determine the connection
status.…
Availability in versions: PHP 5.1.0
Retreive the default streams context
Parameters
Parameter
Data type
Default value
Note
$options
array
null
Return values
resource
A stream context resource.
Other resources
Official documentation for…
Availability in versions: PHP 4.3.0
Set blocking/non-blocking mode on a stream
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
The stream.
$mode
int
not
If mode is 0, the given stream will be switched to non-blocking…
Availability in PHP 4.0
Hexadecimal to decimal
Parameters
Parameter
Data type
Default value
Note
$hex_string
string
not
The hexadecimal string to convert
Return values
number
The decimal representation of hex_string
Other resources…
Availability in PHP 4.0
Outputs a file
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
The filename being read.
$use_include_path
bool
null,
You can use the optional second parameter and set it to true, if you want to…
Availability in PHP 5.0
Case-insensitive version of str_replace.
Parameters
Parameter
Data type
Default value
Note
$search
mixed
not
Every replacement with search array is performed on the result of previous replacement.
$replace
mixed
not
…
Availability in PHP 5.0
Copies data from one stream to another
Parameters
Parameter
Data type
Default value
Note
$source
resource
not
The source stream
$dest
resource
not
The destination stream
$maxlength
int
null,
Maximum bytes to copy
…
Availability in versions: PHP 4.2.0
Calculates the md5 hash of a given file
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
The filename
$raw_output
bool
null
When true, returns the digest in raw binary format with a…
Availability in versions: PHP 4.0.4
Parameters
Parameter
Data type
Default value
Note
$name
string
not
The constant name.
Return values
int
The filter() method must return one of
three values upon completion.
Return Value
Meaning
…
Availability in PHP 4.0
Set locale information
Parameters
Parameter
Data type
Default value
Note
$category
int
not
category is a named constant specifying the category of the functions affected by the locale setting:
$locale
string
not
If…
Version availability: PHP 5.3.0
Parse a configuration string
Parameters
Parameter
Data type
Default value
Note
$ini
string
not
The contents of the ini file being parsed.
$process_sections
bool
null,
By setting the process_sections parameter…
Availability in versions: PHP 5.5.0
Sets the process title
Parameters
Parameter
Data type
Default value
Note
$title
string
not
The new title.
Return values
bool
TRUE on success or FALSE on failure.
Other resources
Official documentation…
Availability in PHP 4.0
Decimal to hexadecimal
Parameters
Parameter
Data type
Default value
Note
$number
int
not
Decimal value to convert
Return values
string
Hexadecimal string representation of number
Other resources
Official dechex…
Availability in versions: PHP 4.1.0
Hyperbolic cosine
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument to process
Return values
float
The hyperbolic cosine of arg
Other resources
Official documentation of the cosh…
Available in PHP 4.0, PHP 7.1
Gets the value of an environment variable
Parameters
Parameter
Data type
Default value
Note
$varname
string
null
The variable name.
Return values
string
|array|false the value of the environment variable…
Availability in PHP 4.0
Checks whether a file or directory exists
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file or directory.
Return values
bool
true if the file or directory specified by
filename…
Availability in PHP 4.0
Sets the value of an environment variable
Parameters
Parameter
Data type
Default value
Note
$setting
string
not
The setting, like "FOO=BAR"
Return values
bool
Returns true on success, otherwise false on…
Availability in versions: PHP 4.3.0
Calculate the sha1 hash of a file
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
The filename
$raw_output
bool
null
When true, returns the digest in raw binary format with a length…
Availability in versions: PHP 4.0.2
Returns information about the operating system PHP is running on
Parameters
Parameter
Data type
Default value
Note
$mode
string
null
Return values
string
The description, as a string.
Other resources…
Availability in PHP 4.0
Gets the current resource usages
Parameters
Parameter
Data type
Default value
Note
$who
int
null
If who is 1, getrusage will be called with RUSAGE_CHILDREN.
Return values
array
an associative array containing the…
Availability in PHP 4.0
Find the position of the last occurrence of a substring in a string
Parameters
Parameter
Data type
Default value
Note
$haystack
string
not
The string to search in.
$needle
string
not
If needle is not a string, it is…
Availability in PHP 4.0
Make a string uppercase
Parameters
Parameter
Data type
Default value
Note
$string
string
not
String being processed.
Return values
string
the uppercased string.
Other resources
Official strtoupper documentation
Availability in PHP 4.0
Calculates the exponent of e
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument to process
Return values
float
'e' raised to the power of arg
Other resources
Official exp function…
Availability in PHP 4.0
Gets time of last page modification
Parameters
The function has no input parameters.
Return values
int
the time of the last modification of the current
page. The value returned is a Unix timestamp, suitable for
feeding to…
Availability in PHP 4.0
Limits the maximum execution time
Parameters
Parameter
Data type
Default value
Note
$seconds
int
not
The maximum execution time, in seconds. If set to zero, no time limit is imposed.
Return values
bool
Returns TRUE…
Availability in PHP 4.0
Gets the current PHP version
Parameters
Parameter
Data type
Default value
Note
$extension
string
null
An optional extension name.
Return values
string
If the optional extension parameter is
specified, phpversion…
Availability in versions: PHP 5.5.0
Set the interpolation method
Parameters
Parameter
Data type
Default value
Note
$image
resource
not
An image resource, returned by one of the image creation functions, such as {@link https://www.php.net…
Availability in PHP 4.0
Tells whether the filename is a regular file
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
bool
true if the filename exists and is a regular file, false…
Availability in PHP 4.0
Returns filename component of path
Parameters
Parameter
Data type
Default value
Note
$path
string
not
A path.
$suffix
string
null
If the filename ends in suffix this will also be cut off.
Return values
string
the…
(PHP 4.2.0, PHP 5)
doubleval � Alias of floatval()
Get float value of a variable
&Alias; floatval
Parameters
Parameter
Data type
Default value
Note
$var
mixed
not
Return values
float
value of the given variable. Empty arrays return 0,…
PHP > 5.4.0
Set the stream chunk size.
Parameters
Parameter
Data type
Default value
Note
$fp
resource
not
$chunk_size
int
not
Return values
int
Returns the previous chunk size on success.
Will return FALSE if chunk_size is less than…
Availability in versions: PHP 4.3.0
Return a list of .ini files parsed from the additional ini dir
Parameters
The function has no input parameters.
Return values
string
A comma-separated string of .ini files on success. Each comma is
followed by a…
Availability in PHP 5.0
&Alias; checkdnsrr
Parameters
Parameter
Data type
Default value
Note
$host
???
$type
???
Return values
bool
Returns TRUE if any records are found; returns FALSE if no records were found or if an error…
Availability in PHP 4.0
Tokenize string
Note that only the first call to strtok uses the string argument.
Every subsequent call to strtok only needs the token to use, as it keeps track of where it is in the current string.
To start over, or to…
Availability in PHP 5.0
Sends a message to a socket, whether it is connected or not
Parameters
Parameter
Data type
Default value
Note
$socket
resource
not
The socket to send data to.
$data
string
not
The data to be sent.
$flags
int
null,…
Availability in versions: PHP 4.2.0
Gets all configuration options
Parameters
Parameter
Data type
Default value
Note
$extension
string
null,
An optional extension name. If set, the function return only options specific for that extension.
…
Availability in PHP 4.0
Return the current element in an array
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The array.
Return values
mixed
The current function simply returns the
value of the array element that's…
Availability in versions: PHP 5.1.0
Restores a previously unregistered built-in wrapper
Parameters
Parameter
Data type
Default value
Note
$protocol
string
not
Return values
bool
Returns true on success, otherwise false on failure.
Other…
Availability in PHP 4.0
Counts all elements in an array, or something in an object.
For objects, if you have SPL installed, you can hook into count() by implementing interface {
Parameters
Parameter
Data type
Default value
Note
$var
`array…
Availability in PHP 4.0
Combined linear congruential generator
Parameters
The function has no input parameters.
Return values
float
A pseudo random float value in the range of (0, 1)
Other resources
Official documentation of the lcg-value function
Availability in versions: PHP 4.1.0
Returns available space in directory
Parameters
Parameter
Data type
Default value
Note
$directory
string
not
A directory of the filesystem or disk partition.
Return values
float
|bool the number of…
Availability in PHP 4.0
Convert logical Hebrew text to visual text with newline conversion
Parameters
Parameter
Data type
Default value
Note
$hebrew_text
string
not
A Hebrew input string.
$max_chars_per_line
int
null
This optional parameter…
Availability in PHP 4.0
Convert a number between arbitrary bases
Parameters
Parameter
Data type
Default value
Note
$number
string
not
The number to convert
$frombase
int
not
The base number is in
$tobase
int
not
Return values
string…
Availability in versions: PHP 4.1.0
Returns the total size of a directory
Parameters
Parameter
Data type
Default value
Note
$directory
string
not
A directory of the filesystem or disk partition.
Return values
float
|bool the total number…
Availability in PHP 4.0
Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address
Parameters
Parameter
Data type
Default value
Note
$ip_address
string
not
A standard format address.
Return values
int
the…
Availability in versions: PHP 4.0.4
Finds whether a variable is &null;
Parameters
Parameter
Data type
Default value
Note
$var
mixed
not
The variable being evaluated.
Return values
bool
true if var is null, false
otherwise.
Other…
Availability in versions: PHP 5.3.2
Resolve filename against the include path according to the same rules as fopen()/include().
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Return values
string
|bool containing…
Availability in versions: PHP 4.3.2
Register a URL wrapper implemented as a PHP class
Parameters
Parameter
Data type
Default value
Note
$protocol
string
not
The wrapper name to be registered.
$classname
string
not
The classname which…
Availability in PHP 4.0
Make a string lowercase
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String being processed.
Return values
string
the lowercased string.
Other resources
Official strtolower documentation
Availability in PHP 4.0
Initializes all syslog related variables
Parameters
The function has no input parameters.
Return values
void
Availability in versions: PHP 5.5.0
Flips an image using a given mode
Parameters
Parameter
Data type
Default value
Note
$image
resource
An image resource, returned by one of the image creation functions, such as {@link https://www.php.net…
Availability in versions: PHP 4.3.0
Set timeout period on a stream
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
The target stream.
$seconds
int
not
The seconds part of the timeout to be set.
$microseconds
int…
Availability in PHP 4.0
Sends the HTTP header and the raw form.
Parameters
Parameter
Data type
Default value
Note
$string
string
not
Header content
$replace
bool
true,
The optional replace parameter indicates whether the header should…
Availability in versions: PHP 5.1.0
Remove a filter from a stream
Parameters
Parameter
Data type
Default value
Note
$stream_filter
resource
not
The stream filter to be removed.
Return values
bool
Returns true on success, otherwise false on…
Availability in versions: PHP 4.2.0
Finds whether a value is infinite
Parameters
Parameter
Data type
Default value
Note
$val
float
not
The value to check
Return values
bool
true if val is infinite, else false.
Other resources
Official is…
Availability in PHP 4.0
Return the contents of the output buffer
Parameters
The function has no input parameters.
Return values
string
This will return the contents of the output buffer or false, if output
buffering isn't active.
Additional…
Availability in PHP 4.0
Shuffle an array
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The array.
Return values
bool
Returns true on success, otherwise false on failure.
Other resources
Official shuffle documentation
Availability in versions: PHP 4.1.0
Inverse hyperbolic cosine
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
The value to process
Return values
float
The inverse hyperbolic cosine of arg
Other resources
Official…
Availability in PHP 4.0
&Alias; stream_set_timeout
Set timeout period on a stream
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
The target stream.
$seconds
int
not
The seconds part of the timeout to be set.
…
Availability in PHP 4.0
Strip whitespace (or other characters) from the beginning of a string
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String being processed.
$charlist
string
"
You can also specify the…
Availability in PHP 4.0
Get the IPv4 address corresponding to a given Internet host name
Parameters
Parameter
Data type
Default value
Note
$hostname
string
not
The host name.
Return values
string
the IPv4 address or a string containing the…
Availability in versions: PHP 5.1.0
Parse a time/date generated with strftime
Parameters
Parameter
Data type
Default value
Note
$date
string
not
The string to parse (e.g. returned from strftime)
$format
string
not
The format used in date (e…
Availability in PHP 4.0
Arc sine
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument to process
Return values
float
The arc sine of arg in radians
Other resources
Official documentation of the asin function
Availability in PHP 5.0
Decode a uuencoded string
Parameters
Parameter
Data type
Default value
Note
$data
string
not
The uuencoded data.
Return values
string
the decoded data as a string.
Other resources
Official documentation for convert…
Availability in PHP 4.0
&Alias; set_magic_quotes_runtime
Parameters
Parameter
Data type
Default value
Note
$new_setting
???
Availability in PHP 4.0
Sets file access rights (read, write, delete).
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
File path (absolute is recommended)
$mode
int
not
Access rights (for example 0777 - everyone has…
Availability in versions: PHP 4.3.0
Retrieves header/meta data from streams/file pointers
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
The stream can be any stream created by fopen, fsockopen and pfsockopen.
…
Availability in PHP 4.0
Get string value of a variable
Parameters
Parameter
Data type
Default value
Note
$var
mixed
not
The variable that is being converted to a string.
Return values
string
The string value of var.
Other resources…
Availability in versions: PHP 5.5.0
Converts a palette based image to true color
Parameters
Parameter
Data type
Default value
Note
$image
resource
not
An image resource, returnd by one of the image creation functions, such as {@link https:/…
Availability in PHP 5.0
List files and directories inside the specified path
Parameters
Parameter
Data type
Default value
Note
$directory
string
not
The directory that will be scanned.
$sorting_order
int
null,
By default, the sorted order…
Availability in PHP 4.0
Replacing text in part of a string
Parameters
Parameter
Data type
Default value
Note
$string
mixed
not
String being processed.
$replacement
string
not
Replacement string.
$start
int
not
If start is positive, the…
Version availability: PHP 4.0.6
Verify that the contents of a variable can be called as a function
Parameters
Parameter
Data type
Default value
Note
$name
`callback
callable`
not
$syntax_only
bool
null,
If set to true the function only…
Availability in PHP 4.0
Delay execution in microseconds
Parameters
Parameter
Data type
Default value
Note
$micro_seconds
int
not
Halt time in micro seconds. A micro second is one millionth of a second.
Return values
void
Other resources…
Availability in PHP 4.0
Reverse a string
Parameters
Parameter
Data type
Default value
Note
$string
string
not
The string to be reversed.
Return values
string
the reversed string.
Other resources
Official strrev documentation
Availability in PHP 4.0
Binary to decimal
Parameters
Parameter
Data type
Default value
Note
$binary_string
string
not
The binary string to convert
Return values
number
The decimal value of binary_string
Other resources
Official bindec…
Availability in versions: PHP 4.2.0
Finds whether a value is a legal finite number
Parameters
Parameter
Data type
Default value
Note
$val
float
not
The value to check
Return values
bool
true if val is a legal finite
number within the…
Availability in PHP 4.0
Gets the current working directory
Parameters
The function has no input parameters.
Return values
string
the current working directory on success, or false on
failure.
On some Unix variants, getcwd will return
false if any…
Availability in PHP 4.0
Return part of a string
Parameters
Parameter
Data type
Default value
Note
$string
string
not
String being processed.
$start
int
not
If start is non-negative, the returned string will start at the start'th position in…
Available in PHP 4.0, PHP 5, PHP 7
Absolute value of the number
Parameters
Parameter
Data type
Default value
Note
$number
mixed
not
Numeric conversion value
$cislo = -15.4;
$abs = abs($cislo); // 15.4
Returns the absolute value of the…
Availability in PHP 4.0
Arc tangent of two variables
Parameters
Parameter
Data type
Default value
Note
$y
float
not
Dividend parameter
$x
float
not
Divisor parameter
Return values
float
The arc tangent of y/x
in radians.
Other sources…
Availability in PHP 4.0
Open Internet or Unix domain socket connection
Parameters
Parameter
Data type
Default value
Note
$hostname
string
not
If you have compiled in OpenSSL support, you may prefix the hostname with either ssl:// or tls:// to…
Availability in versions: PHP 4.0.5
Change the root directory
Parameters
Parameter
Data type
Default value
Note
$directory
string
not
The new directory
Return values
bool
Returns true on success, otherwise false on failure.
Other resources…
Availability in PHP 4.0
Finds whether a variable is a resource
Parameters
Parameter
Data type
Default value
Note
$var
mixed
not
The variable being evaluated.
Return values
bool
true if var is a resource,
false otherwise.
Other resources…
Availability in PHP 4.0
Set the type of a variable
Parameters
Parameter
Data type
Default value
Note
$var
mixed
not
The variable being converted.
$type
string
not
Possible values of type are:
Return values
bool
Returns true on success,…
Availability in PHP 4.0
Join array elements with a string
Parameters
Parameter
Data type
Default value
Note
$glue
string
"",
Defaults to an empty string. This is not the preferred usage of implode as glue would be the second…
Availability in PHP 4.0
Cosine
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
An angle in radians
Return values
float
The cosine of arg
Other resources
Official documentation of the cos function
Availability in PHP 4.0
Gets line from file pointer and parse for CSV fields
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
A valid file pointer to a file successfully opened by fopen, popen, or fsockopen.
$length…
Availability in PHP 4.0
Removes directory
Parameters
Parameter
Data type
Default value
Note
$dirname
string
not
Path to the directory.
$context
resource
null
Return values
bool
Returns true on success, otherwise false on failure.
Other…
Availability in versions: PHP 5.1.0
Format line as CSV and write to file pointer
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
$fields
array
not
An array of values.
$delimiter
string
",",
The optional…
Availability in PHP 4.0
Replaces all occurrences of the search string with the replacement string.
Parameters
Parameter
Data type
Default value
Note
$search
mixed
not
Search value, otherwise known as $needle. The field can be used to denote…
Availability in PHP 4.0
Returns the type of the variable.
Parameters
Parameter
Data type
Default value
Note
$var
mixed
not
Variable to check
Return values
string
Returns the type of the variable.
Returns one of the following:
boolean
…
Availability in PHP 4.0
Return current Unix timestamp with microseconds
Parameters
Parameter
Data type
Default value
Note
$get_as_float
bool
null
When called without the optional argument, this function returns the string "msec sec"…
Availability in versions: PHP 4.3.0
Sets file buffering on the given stream
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
The file pointer.
$buffer
int
not
The number of bytes to buffer. If buffer is 0 then write…
Availability in PHP 4.0
&Alias; ini_set
Parameters
Parameter
Data type
Default value
Note
$varname
???
$newvalue
???
Other resources
Official ini-alter documentation
Availability in PHP 4.0
Encodes data with MIME base64
Parameters
Parameter
Data type
Default value
Note
$data
string
not
The data to encode.
Return values
string
The encoded data, as a string.
Other resources
Official documentation of the…
Availability in PHP 4.0
Returns the translation table used by htmlspecialchars and htmlentities
Parameters
Parameter
Data type
Default value
Note
$table
int
null,
There are two new constants (HTML_ENTITIES, HTML_SPECIALCHARS) that allow you…
Availability in PHP 4.0
Checks if or where headers have been sent
Parameters
Parameter
Data type
Default value
Note
$file
string
null,
If the optional file and line parameters are set, headers_sent will put the PHP source file name and line…
Availability in PHP 4.0
Send a cookie
Parameters
Parameter
Data type
Default value
Note
$name
string
not
The name of the cookie.
$value
string
null,
The value of the cookie. This value is stored on the clients computer; do not store…
Availability in PHP 4.0
Flush the output buffer
Parameters
The function has no input parameters.
Return values
void
Other resources
Official flush documentation
Availability in PHP 4.0
Call a user function given by the first parameter
Parameters
Parameter
Data type
Default value
Note
$function
callback
not
The function to be called. Class methods may also be invoked statically using this function by…
Availability in PHP 4.0
Gets file inode
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
int
|bool the inode number of the file, or false on failure.
Additional resources
Official…
Availability in PHP 4.0
Split a string into smaller chunks
Parameters
Parameter
Data type
Default value
Note
$body
string
not
The string to be chunked.
$chunklen
int
null,
The chunk length.
$end
string
null
The line ending sequence.
…
Availability in PHP 4.0
Sets the current active configuration setting of magic_quotes_runtime
Parameters
Parameter
Data type
Default value
Note
$new_setting
bool
not
false for off, true for on.
Return values
bool
Returns true on success,…
Availability in PHP 4.0
Gets file permissions
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
int
|bool the permissions on the file, or false on failure.
Additional resources
Official…
Availability in PHP 5.0
Receives data from a socket, connected or not
Parameters
Parameter
Data type
Default value
Note
$socket
resource
not
The remote socket.
$length
int
not
The number of bytes to receive from the socket.
$flags
int…
Availability in versions: PHP 5.5.0
Returns the current process title
Parameters
The function has no input parameters.
Return values
string
Return a string with the current process title or NULL on error.
Additional resources
Official documentation…
Availability in PHP 4.0
Sort an array in reverse order and maintain index association
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The input array.
$sort_flags
int
null
You may modify the behavior of the sort using the…
Availability in PHP 4.0
Clean (erase) the output buffer and turn off output buffering
Parameters
The function has no input parameters.
Return values
bool
Returns true on success, otherwise false on failure. Reasons for failure are first that you…
Availability in PHP 4.0
Returns the rounded value of val to specified precision (number of digits after the decimal point).
precision can also be negative or zero (default).
Note: PHP doesn't handle strings like "12,300.2" correctly by…
Availability in PHP 4.0
Advance the internal array pointer of an array
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The array being affected.
Return values
mixed
the array value in the next place that's pointed to by…
Availability in PHP 4.0
Generates a unique identifier.
It is mainly used for generating IDs in tables that are stored piecemeal on multiple servers and are periodically synchronized. If the database is running in multiple places at the same time,…
Availability in versions: `PHP 5.5.0
/
function boolval($var) {}
/**
Get the integer value of a variable, PHP 4.0`
(PHP 5.5.0)
Get the boolean value of a variable
Parameters
Parameter
Data type
Default value
Note
$var
mixed
not
the scalar…
Availability in versions: PHP 4.2.0
Return the nesting level of the output buffering mechanism
Parameters
The function has no input parameters.
Return values
int
the level of nested output buffering handlers or zero if output
buffering is not active…
Availability in PHP 4.0
Gets file owner
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
int
|bool the user ID of the owner of the file, or false on failure.
The user ID is returned in…
Availability in PHP 4.0
&Alias; is_writable
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
The filename being checked.
Return values
bool
true if the filename exists and is
writable.
Other resources
Official is…
Availability in PHP 4.0
Restores the value of a configuration option
Parameters
Parameter
Data type
Default value
Note
$varname
string
not
The configuration option name.
Return values
void
Other resources
Official ini-restore documentation
Availability in versions: PHP 4.3.0
Attach a filter to a stream
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
The target stream.
$filtername
string
not
The filter name.
$read_write
int
null,
By default, stream…
Availability in PHP 4.0
Get the Internet host name corresponding to a given IP address
Parameters
Parameter
Data type
Default value
Note
$ip_address
string
not
The host IP address.
Return values
string
the host name or the unmodified ip…
Availability in versions: PHP 4.1.0
Returns exp(number) - 1, computed in a way that is accurate even
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument to process
Return values
float
'e' to the power of arg minus one…
Availability in PHP 4.0
Extracts all meta tag content attributes from a file and returns an array
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
The path to the HTML file, as a string. This can be a local file or an…
Availability in PHP 4.0
Syntax highlighting of a file
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the PHP file to be highlighted.
$return
bool
null
Set this parameter to true to make this function return…
Availability in PHP 4.0
Converts the radian number to the equivalent number in degrees
Parameters
Parameter
Data type
Default value
Note
$number
float
not
A radian value
Return values
float
The equivalent of number in degrees
Other…
Availability in versions: PHP 4.3.0
Gets the current include_path configuration option
Parameters
The function has no input parameters.
Return values
string
The path, as a string.
Other resources
Official documentation for get-include-path
Availability in PHP 4.0
Parse a configuration file
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
The filename of the ini file being parsed.
$process_sections
bool
null,
By setting the process_sections parameter to…
Availability in PHP 4.0
Portable advisory file locking
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
An open file pointer.
$operation
int
not
operation is one of the following: LOCK_SH to acquire a shared lock …
Availability in versions: PHP 4.2.0
Clean (erase) the output buffer
Parameters
The function has no input parameters.
Return values
void
Other resources
Official ob-clean documentation
Availability in versions: PHP 4.3.0
Runs the equivalent of the select() system call on the given
arrays of streams with a timeout specified by tv_sec and tv_usec
Parameters
Parameter
Data type
Default value
Note
$read
array
not
The streams…
Availability in PHP 4.0
Gets the current active configuration setting of magic_quotes_runtime
Parameters
The function has no input parameters.
Return values
int
0 if magic quotes runtime is off, 1 otherwise.
Other resources
Official documentation…
Availability in PHP 5.0
Convert a string to an array
Parameters
Parameter
Data type
Default value
Note
$string
string
not
String being processed.
$split_length
int
1
Maximum length of the chunk.
Return values
array
If the optional split…
Availability in versions: PHP 4.2.0
Get status of output buffers
Parameters
Parameter
Data type
Default value
Note
$full_status
bool
null
true to return all active output buffer levels. If false or not set, only the top level output buffer is…
Availability in PHP 4.0
String comparisons using a "natural order" algorithm
Parameters
Parameter
Data type
Default value
Note
$str1
string
not
The first string.
$str2
string
not
The second string.
Return values
int
Similar to…
Availability in PHP 4.0
Close connection to system logger
Parameters
The function has no input parameters.
Return values
bool
Returns true on success, otherwise false on failure.
Other resources
Official closelog documentation
Availability in PHP 4.0
Convert from one Cyrillic character set to another
Parameters
Parameter
Data type
Default value
Note
$str
string
not
The string to be converted.
$from
string
not
The source Cyrillic character set, as a single…
Availability in versions: PHP 4.3.0
&Alias; stream_wrapper_register
Register a URL wrapper implemented as a PHP class
Parameters
Parameter
Data type
Default value
Note
$protocol
string
not
The wrapper name to be registered.
$classname…
Availability in PHP 4.0
Rewind the position of a file pointer
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
The file pointer must be valid, and must point to a file successfully opened by fopen.
Return values
bool…
Availability in PHP 4.0
Find lowest value
Parameters
Parameter
Data type
Default value
Note
$value1
`array
mixed`
not
$value2
mixed
null,
$values
mixed
not
Return values
mixed
min returns the numerically lowest of the
parameter…
Availability in PHP 4.0
Gets the current configuration setting of magic quotes gpc
Parameters
The function has no input parameters.
Return values
int
0 if magic quotes gpc are off, 1 otherwise.
Other resources
Official documentation for get-magic…
Availability in PHP 4.0
Sort an array using a case insensitive "natural order" algorithm
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The input array.
Return values
bool
Returns true on success, otherwise…
Availability in PHP 5.0
Delay in seconds and nanoseconds
Parameters
Parameter
Data type
Default value
Note
$seconds
int
not
Must be a positive integer.
$nanoseconds
int
not
Must be a positive integer less than 1 billion.
Return values…
Availability in versions: PHP 4.0.2
Wraps a string to the specified number of characters
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String being processed.
$width
int
75,
column width.
$break
string
"\n",…
Availability in PHP 4.0
&Alias; stream_set_blocking
Parameters
Parameter
Data type
Default value
Note
$socket
resource
not
The stream.
$mode
int
not
If mode is 0, the given stream will be switched to non-blocking mode, and if 1, it will…
Availability in versions: PHP 4.0.3
Returns information about a file path
Parameters
Parameter
Data type
Default value
Note
$path
string
not
The path being checked.
$options
int
null
You can specify which elements are returned with optional…
Availability in PHP 4.0
Sets file access and modification time
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
The name of the file you are touching.
$time
int
null,
time of touch. If no time is given, the current…
Availability in versions: PHP 4.0.5
Locale based string comparison
Parameters
Parameter
Data type
Default value
Note
$str1
string
not
The first string.
$str2
string
not
The second string.
Return values
int
< 0 if str1 is less than…
Availability in versions: PHP 4.2.0
Get float value of a variable
Parameters
Parameter
Data type
Default value
Note
$var
mixed
not
Return values
float
value of the given variable. Empty arrays return 0, non-empty arrays return 1.
Other…
Availability in PHP 4.0
Convert logical Hebrew text to visual text
Parameters
Parameter
Data type
Default value
Note
$hebrew_text
string
not
A Hebrew input string.
$max_chars_per_line
int
null
This optional parameter indicates maximum…
Availability in versions: PHP 4.3.0
Flush the output buffer, return it as a string and turn off output buffering
Parameters
The function has no input parameters.
Return values
string
the output buffer or false if no buffering is active.
Other…
Availability in versions: PHP 4.1.0
Hyperbolic sine
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument to process
Return values
float
The hyperbolic sine of arg
Other resources
Official documentation of the function…
Availability in versions: PHP 4.3.0
Convert all HTML entities to their applicable characters
Parameters
Parameter
Data type
Default value
Note
$string
string
not
String being processed.
$quote_style
int
null,
The optional second quote_style…
Availability in PHP 4.0
Script sleep.
Parameters
Parameter
Data type
Default value
Note
$seconds
int
not
How long to sleep in seconds.
Return values
int
Returns zero (0) if correct, or false if incorrect.
If the sleep was artificially…
Availability in PHP 4.0
Close directory handle
Parameters
Parameter
Data type
Default value
Note
$dir_handle
resource
null
The directory handle resource previously opened with opendir. If the directory handle is not specified, the last link…
Availability in PHP 5.0
Open Internet or Unix domain socket connection
Parameters
Parameter
Data type
Default value
Note
$remote_socket
string
not
Address to the socket to connect to.
$errno
int
null,
Will be set to the system level error…
Availability in PHP 4.0
Returns canonicalized absolute pathname
Parameters
Parameter
Data type
Default value
Note
$path
string
not
The path being checked.
Return values
string
|bool the canonicalized absolute pathname on success. The…
Availability in versions: PHP 5.1.0
Move script to sleep by the specified time
Parameters
Parameter
Data type
Default value
Note
$timestamp
float
not
The time when the script should wake up.
Return values
bool
Returns true on success,…
Availability in PHP 4.0
Prints human-readable information about a variable
Parameters
Parameter
Data type
Default value
Note
$expression
mixed
not
The expression to be printed.
$return
bool
null
If you would like to capture the output of…
Availability in versions: PHP 4.2.0
Finds whether a value is not a number
Parameters
Parameter
Data type
Default value
Note
$val
float
not
The value to check
Return values
bool
true if val is 'not a number',
else false.
Other resources…
Version availability: PHP 5.3.0
Convert a 8 bit string to a quoted-printable string
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String being processed.
Return values
string
the encoded string.
Other resources
Official…
Availability in PHP 4.0
&Alias; disk_free_space
Parameters
Parameter
Data type
Default value
Note
$path
???
Other resources
Official documentation for diskfreespace
Availability in PHP 4.0
Strip HTML and PHP tags from a string
Parameters
Parameter
Data type
Default value
Note
$str
string
not
Input string.
$allowable_tags
string
null
You can use the second optional parameter to specify tags that should…
Availability in PHP 4.0
Calculate the md5 hash of a string
Parameters
Parameter
Data type
Default value
Note
$str
string
not
The string.
$raw_output
bool
null
If the optional raw_output is set to true, then the md5 digest is instead…
Availability in versions: PHP 4.3.0
Return information about words used in a string
Parameters
Parameter
Data type
Default value
Note
$string
string
not
The string
$format
int
null,
Specify the return value of this function. The current…
Availability in PHP 4.0
Mathematical function sine.
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Value in radians
Return values
float
The value of the sin.
Other resources
Official sin function documentation
Version availability: PHP 5.3.0
Tells whether the stream supports locking.
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
The stream to check.
Return values
bool
Returns true on success, otherwise false on failure.…
Availability in PHP 4.0
Tells whether the filename is writable
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
The filename being checked.
Return values
bool
true if the filename exists and is
writable.
Other…
Availability in PHP 4.0
changes the current umask
Parameters
Parameter
Data type
Default value
Note
$mask
int
null
New umask.
Return values
int
umask without arguments simply returns, otherwise the old umask is returned.
Additional…
Availability in PHP 4.0
Convert binary data into hexadecimal representation
Parameters
Parameter
Data type
Default value
Note
$str
string
not
A character.
Return values
string
the hexadecimal representation of the given string.
Other…
Availability in PHP 5.0
Reads remainder of a stream into a string
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
A stream resource (e.g. returned from fopen)
$maxlength
int
null,
The maximum bytes to read. Defaults…
Availability in PHP 4.0
Gives information about a file
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
array
stat and fstat result
format
Numeric
Associative (since PHP 4.0.6)…
Availability in versions: PHP 5.2.4
Retrieve a path to the loaded php.ini file
Parameters
The function has no input parameters.
Return values
string
The loaded &php.ini; path, or false if one is not loaded.
Additional resources
Official…
Availability in PHP 4.0
Sort an array by key in reverse order
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The input array.
$sort_flags
int
null
You may modify the behavior of the sort using the optional parameter sort…
Availability in PHP 5.0
Finds the position of the first occurrence of a string without character size resolution.
TIP:
The stripos function has been used in the past to check whether a string contains a substring.
Since PHP 8.0, there is a native…
Availability in PHP 4.0
Prints variable information directly to the output (page).
Parameters
Parameter
Data type
Default value
Note
$expression
mixed
not
Variable to be output
$_
mixed
null
Return values
void
The function returns…
Availability in PHP 4.0
Gets the value of a PHP configuration option
Parameters
Parameter
Data type
Default value
Note
$option
string
not
The configuration option name.
Return values
string
the current value of the PHP configuration…
Availability in versions: PHP 4.3.0
Match filename against a pattern
Parameters
Parameter
Data type
Default value
Note
$pattern
string
not
The shell wildcard pattern.
$string
string
not
$flags
int
null
The value of flags can be any…
Availability in PHP 4.0
Returns directory name component of path
Parameters
Parameter
Data type
Default value
Note
$path
string
not
A path.
$levels
int
1
The number of parent directories to go up. This must be an integer greater than 0.
…
Version availability: PHP 5.3.0
Set the default streams context
Parameters
Parameter
Data type
Default value
Note
$options
array
not
The options to set for the default context.
Return values
resource
the default stream context.
Other…
Availability in versions: PHP 4.3.0
Attach a filter to a stream
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
The target stream.
$filtername
string
not
The filter name.
$read_write
int
null,
By default, stream…
Availability in PHP 5.0
Uuencode and string
Parameters
Parameter
Data type
Default value
Note
$data
string
not
The data to be encoded.
Return values
string
the uuencoded data.
Other resources
Official documentation of the convert-uuencode…
Availability in versions: PHP 5.1.0
Creates a pair of connected, indistinguishable socket streams
Parameters
Parameter
Data type
Default value
Note
$domain
int
not
The protocol family to be used: STREAM_PF_INET, STREAM_PF_INET6 or STREAM_PF…
Availability in versions: PHP 5.3.0
Call a static method
Parameters
Parameter
Data type
Default value
Note
$function
callback
not
The function or method to be called. This parameter may be an array, with the name of the class, and the method,…
Availability in versions: PHP 4.3.0
Sets an option for a stream/wrapper/context
Parameters
Parameter
Data type
Default value
Note
$stream_or_context
resource
not
$options
array
not
Return values
bool
Returns true on success, otherwise…
Availability in versions: PHP 5.2.4
Checks if a stream is a local stream
Parameters
Parameter
Data type
Default value
Note
$stream_or_url
mixed
not
The stream resource or URL to check.
Return values
bool
Returns true on success, otherwise…
Availability in PHP 4.0
Sort an array by key
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The input array.
$sort_flags
int
null
You may modify the behavior of the sort using the optional parameter sort_flags, for…
Availability in versions: PHP 5.3.0
Remove previously set headers
Parameters
Parameter
Data type
Default value
Note
$name
string
null
The header name to be removed.
Return values
void
Other resources
Official header-remove documentation
Availability in PHP 4.0
Parse a binary IPTC block into single tags.
Parameters
Parameter
Data type
Default value
Note
$iptcblock
string
not
A binary IPTC block.
Return values
array
an array using the tagmarker as an index and the value as…
Availability in versions: PHP 5.1.0
Converts a human readable IP address to its packed in_addr representation
Parameters
Parameter
Data type
Default value
Note
$address
string
not
A human readable IPv4 or IPv6 address.
Return values
string…
Availability in PHP 4.0
Send an error message somewhere
Parameters
Parameter
Data type
Default value
Note
$message
string
not
The error message that should be logged.
$message_type
int
null,
Says where the error should go. The possible…
Availability in PHP 4.0
Calculate the metaphone key of a string
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String being processed.
$phonemes
int
0
This parameter restricts the returned metaphone key to phonemes…
Availability in PHP 7.0
Integer division
Parameters
Parameter
Data type
Default value
Note
$dividend
???
$divisor
???
Return values
int
If divisor is 0, a {@link DivisionByZeroError} exception is thrown.
If the dividend is PHP_INT…
Availability in versions: PHP 5.2.0
Get the last occurred error
Parameters
The function has no input parameters.
Return values
array
an associative array describing the last error with keys "type",
"message", "file" and…
Availability in versions: PHP 4.3.0
Gets options from the command line argument list
Parameters
Parameter
Data type
Default value
Note
$options
string
not
$longopts
array
null,
$optind
int
null
Return values
array
This function will…
Availability in versions: PHP 4.3.0
Find pathnames matching a pattern
Parameters
Parameter
Data type
Default value
Note
$pattern
string
not
The pattern. No tilde expansion or parameter substitution is done.
$flags
int
null
Valid flags: GLOB…
Availability in versions: PHP 4.1.0
Inverse hyperbolic tangent
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument to process
Return values
float
Inverse hyperbolic tangent of arg
Other resources
Official…
Availability in versions: PHP 4.1.0
Returns log(1 + number), computed in a way that is accurate even when
Parameters
Parameter
Data type
Default value
Note
$number
float
not
Processing argument
Return values
float
log(1 + number)
Other…
Availability in PHP 4.0
Sets the value of a configuration option
Parameters
Parameter
Data type
Default value
Note
$varname
string
not
$newvalue
string
not
The new value for the option.
Return values
string
|bool the old value on…
Availability in PHP 5.0
Return source with stripped comments and whitespace
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the PHP file.
Return values
string
The stripped source code will be returned on…
Availability in PHP 4.0
Warning:
This feature is deprecated and no longer available as of PHP 5.
This function returns an ID that can be used to display the Zend logo using the built-in image.
For example:
echo '<img src="' . $_SERVER['PHP…
Availability in PHP 4.0
Registers a function that will be called when PHP starts sending output.
The callback is executed just after PHP prepares all headers to be sent,
and before any other output is sent, creating a window to manipulate the…
Availability in PHP 4.0
Tells whether a file exists and is readable
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
bool
true if the file or directory specified by
filename exists and…
Availability in versions: PHP 5.1.0
Convert special HTML entities back to characters
Parameters
Parameter
Data type
Default value
Note
$string
string
not
The string to decode
$quote_style
int
null
The quote style. One of the following…
Availability in PHP 4.0
Gives information about a file or symbolic link
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to a file or a symbolic link.
Return values
array
See the manual page for stat for…
Availability in PHP 4.0
Binary-safe file read
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
$length
int
not
Up to length number of bytes read.
Return values
string
|bool the read string or false on failure.…
Availability in PHP 4.0
Removes escaping characters from a string that was originally converted by the addcslashes function.
Parameters
Parameter
Data type
Default value
Note
$str
string
not
Input string
Return values
string
Additional…
Availability in PHP 4.0
Turn on output buffering
Parameters
Parameter
Data type
Default value
Note
$output_callback
callback
null,
An optional output_callback function may be specified. This function takes a string as a parameter and should…
Availability in PHP 4.0
Quote meta characters
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String being processed.
Return values
string
the string with meta characters quoted.
Other resources
Official quotemeta…
Availability in PHP 4.0, PHP 7.0
Creates a PHP value from a stored representation
Parameters
Parameter
Data type
Default value
Note
$str
string
not
Serialized string.
$options
mixed
null
Return values
mixed
Returns the converted value,…
Availability in PHP 5.0
Create an Internet or Unix domain server socket
Parameters
Parameter
Data type
Default value
Note
$local_socket
string
not
The type of socket created is determined by the transport specified using standard URL…
Availability in PHP 4.0
Outputs lots of PHP information
Parameters
Parameter
Data type
Default value
Note
$what
int
null
The output may be customized by passing one or more of the following constants bitwise values summed together in the…
Availability in versions: PHP 5.1.0
Turns encryption on/off on an already connected socket
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
The stream resource.
$enable
bool
not
Enable/disable cryptography on the…
Availability in PHP 4.0
Clears file status cache
Parameters
Parameter
Data type
Default value
Note
$clear_realpath_cache
bool
null,
Whenever to clear realpath cache or not.
$filename
string
null
Clear realpath cache on a specific filename,…
Availability in PHP 4.0
&Alias; stream_set_write_buffer
Sets the buffering for write operations on the given stream to buffer bytes.
Output using fwrite() is normally buffered at 8K.
This means that if there are two processes wanting to write to…
Availability in versions: PHP 4.0.3
Moves an uploaded file to a new location
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
The filename of the uploaded file.
$destination
string
not
The destination of the moved file…
Availability in PHP 4.0
Change directory
Parameters
Parameter
Data type
Default value
Note
$directory
string
not
The new current directory
Return values
bool
Returns true on success, otherwise false on failure.
Other resources
Official…
Availability in versions: PHP 4.3.0
Set parameters for a stream/wrapper/context
Parameters
Parameter
Data type
Default value
Note
$stream_or_context
resource
not
The stream or context to apply the parameters too.
$params
array
not
An array…
Availability in PHP 4.0
Parameters
The function has no input parameters.
Return values
string
PHPE9568F34-D428-11d2-A769-00AA001ACF42.
Availability in PHP 4.0
Gets character from file pointer
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
Return values
string
a string containing a single character read from the file pointed
to by handle. Returns…
Availability in PHP 4.0
Case-insensitive str
Parameters
Parameter
Data type
Default value
Note
$haystack
string
not
The string to search in
$needle
mixed
not
$before_needle
bool
null
If true, stristr returns the part of the haystack…
Availability in PHP 4.0
Create array containing variables and their values
Parameters
Parameter
Data type
Default value
Note
$varname
mixed
not
compact takes a variable number of parameters. Each parameter can be either a string containing…
Availability in PHP 4.0
One-way string encryption (hashing)
Parameters
Parameter
Data type
Default value
Note
$str
string
not
The string to be encrypted.
$salt
string
null
An optional salt string to base the encryption on. If not provided,…
Availability in PHP 4.0
Gets line from file pointer and strip HTML tags
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
$length
int
null,
Length of the data to be retrieved.
$allowable_tags
string
null
Return…
Availability in PHP 4.0
&Alias; highlight_file
Parameters
Parameter
Data type
Default value
Note
$file_name
???
$return
???
Other resources
Official show-source documentation
Availability in PHP 4.0
Find length of initial segment not matching mask
Parameters
Parameter
Data type
Default value
Note
$str1
string
not
The first string.
$str2
string
not
The second string.
$start
int
null,
The start position of the…
Availability in PHP 4.0
Repeats string.
Parameters
Parameter
Data type
Default value
Note
$input
string
not
String to be repeated
$multiplier
int
not
How many times to repeat
Return values
string
The final repeated string.
echo 'A' . str…
Availability in PHP 4.0
Checks if the element is part of an array.
Parameters
Parameter
Data type
Default value
Note
$needle
mixed
not
Search value
$haystack
array
not
Searched array
$strict
bool
false
Should the data type be checked as…
Availability in versions: PHP 4.3.0
Randomly shuffles a string
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String being processed.
Return values
string
the shuffled string.
Other resources
Official str-shuffle…
Availability in PHP 4.0
Natural logarithm
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
The value to calculate the logarithm for
$base
float
null
The optional logarithmic base to use (defaults to 'e' and so to the natural…
Availability in versions: PHP 4.3.0
Restores the value of the include_path configuration option
Parameters
The function has no input parameters.
Return values
void
Other resources
Official documentation for restore-include-path
Availability in versions: PHP 5.3.0
Call a static method and pass the arguments as array
Parameters
Parameter
Data type
Default value
Note
$function
callback
not
The function or method to be called. This parameter may be an &array;, with…
Availability in versions: PHP 4.0.5
Get numeric formatting information
Parameters
The function has no input parameters.
Return values
array
localeconv returns data based upon the current locale
as set by setlocale. The associative array that is…
Availability in versions: PHP 4.2.0
Flush (send) the output buffer
Parameters
The function has no input parameters.
Return values
void
Other resources
Official ob-flush documentation
Availability in PHP 4.0
Adds slashes to the string in appropriate places so that the content is escaped.
Parameters
Parameter
Data Type
Default Value
Note
$str
string
not
String to be escaped.
Return values
string - escaped string.
Other…
Availability in PHP 4.0
Capitalizes the first character of each word in a string.
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String being processed.
$delimiters
string
"
Return values
string
A modified string…
Availability in PHP 4.0
Check whether client disconnected
Parameters
The function has no input parameters.
Return values
int
1 if client disconnected, 0 otherwise.
Other resources
Official documentation for connection-aborted
Availability in PHP 4.0
Gets inode change time of file
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
int
|bool the time the file was last changed, or false on failure.
The time is…
Availability in versions: PHP 4.1.0
Inverse hyperbolic sine
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument to process
Return values
float
The inverse hyperbolic sine of arg
Other resources
Official documentation…
Version availability: PHP 5.3.0
Gets the host name
Parameters
The function has no input parameters.
Return values
string
a string with the hostname on success, otherwise false is
returned.
Other resources
Official gethostname documentation
Availability in PHP 4.0
Round fractions up
Parameters
Parameter
Data type
Default value
Note
$value
float
not
The value to round
Return values
float
value rounded up to the next highest
integer.
The return value of ceil is still of type…
Availability in PHP 4.0
Quote string with slashes in a C style
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String to be escaped.
$charlist
string
not
List of characters to be escaped. If charlist contains \n, \r, etc.,…
Availability in versions: PHP 4.0.1
Returns the type of interface between web server and PHP
Parameters
The function has no input parameters.
Return values
string
the interface type, as a lowercase string.
Although not exhaustive, the possible…
Availability in PHP 4.0
&Alias; implode
Parameters
Parameter
Data type
Default value
Note
$glue
string
"",
Defaults to an empty string. This is not the preferred usage of implode as glue would be the second parameter and thus,…
Availability in PHP 4.0
Call a user method on an specific object
Parameters
Parameter
Data type
Default value
Note
$method_name
string
not
$obj
object
not
$parameter
mixed
null,
$_
mixed
null
Return values
mixed
Availability in versions: `PHP 5.5.0
/
function imageaffinematrixconcat(array $m1, array $m2) {}
/**
Return an image containing the affine tramsformed src image, using an optional clipping area, PHP 5.5.0`
Return an image containing the affine…
Availability in PHP 4.0
Deletes whitespace (or other characters) from the beginning and end of a string.
Alternatively, use ltrim() (deletes from the left), or rtrim() (deletes from the right).
Parameters
Parameter
Data type
Default value
Note
…
Availability in PHP 4.0
Tells whether the filename is executable
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
bool
true if the filename exists and is executable, or false on
error.…
Availability in PHP 5.0
Gets line from stream resource up to a given delimiter
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
A valid file handle.
$length
int
not
The number of bytes to read from the handle.
…
Availability in PHP 4.0
Count the number of occurrences of a substring
Parameters
Parameter
Data type
Default value
Note
$haystack
string
not
String to search
$needle
string
not
Substring to be searched
$offset
int
null,
Offset from which…
Availability in PHP 5.0
Retrieve the name of the local or remote sockets
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
The socket to get the name of.
$want_peer
bool
not
If set to true the remote socket name will be…
Availability in versions: PHP 4.0.2
Return the length of the output buffer
Parameters
The function has no input parameters.
Return values
int
the length of the output buffer contents or false if no
buffering is active.
Additional resources
Official…
Availability in versions: PHP 4.3.0
Retrieve options for a stream/wrapper/context
Parameters
Parameter
Data type
Default value
Note
$stream_or_context
resource
not
The stream or context to get options from
Return values
array
an…
Availability in PHP 4.0
Tests for end-of-file on a file pointer
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
Return values
bool
true if the file pointer is at EOF or an error occurs
(including socket timeout);…
Availability in PHP 4.0
Prints out the credits for PHP
Parameters
Parameter
Data type
Default value
Note
$flag
int
null
To generate a custom credits page, you may want to use the flag parameter.
Return values
bool
Returns true on success,…
Availability in versions: PHP 4.3.0
Get current buffer contents and delete current output buffer
Parameters
The function has no input parameters.
Return values
string
the contents of the output buffer and end output buffering.
If output buffering…
Availability in versions PHP 4.0 and later
Returns an instance of Directory class
Parameters
Parameter
Data type
Default value
Note
$directory
???
Directory
$context
???
Context
Return values
An instance of the Directory object.
Availability in versions: PHP 4.3.0
List all output handlers in use
Parameters
The function has no input parameters.
Return values
array
This will return an array with the output handlers in use (if any). If
output_buffering is enabled or
an…
Availability in versions: PHP 5.3.0
Retrieves parameters from a context
Parameters
Parameter
Data type
Default value
Note
$stream_or_context
resource
not
A stream resource or a context resource
Return values
array
an associate array…
Availability in PHP 4.0
Sort an array using a "natural order" algorithm
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The input array.
Return values
bool
Returns true on success, otherwise false on failure.…
Availability in PHP 4.0
Embeds binary IPTC data into a JPEG image
Parameters
Parameter
Data type
Default value
Note
$iptcdata
string
not
The data to be written.
$jpeg_file_name
string
not
Path to the JPEG image.
$spool
int
null
Spool flag…
Availability in PHP 4.0
Gets the name of the owner of the current PHP script
Parameters
The function has no input parameters.
Return values
string
The username as a string.
Other resources
Official documentation for get-current-user
Availability in PHP 4.0
Closes process file pointer
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
The file pointer must be valid, and must have been returned by a successful call to popen.
Return values
int
the…
Availability in PHP 4.0
Get MX records corresponding to a given Internet host name
Parameters
Parameter
Data type
Default value
Note
$hostname
string
not
The Internet host name.
$mxhosts
array
not
A list of the MX records found is placed…
Availability in PHP 4.0
Converts an (IPv4) Internet network address into a string in Internet standard dotted format
Parameters
Parameter
Data type
Default value
Note
$proper_address
`string
int`
not
Return values
string
the Internet IP…
Availability in PHP 4.0
Returns the largest element of the array.
Parameters
Parameter
Data type
Default value
Note
$value1
`array
mixed`
not
$value2
mixed
null,
$values
mixed
not
Return values
mixed
Returns the largest element of…
Availability in PHP 4.0
Sort an array
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The input array.
$sort_flags
int
null
The optional second parameter sort_flags may be used to modify the sorting behavior using these…
Availability in PHP 4.0
Gets last access time of file
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
int
|bool the time the file was last accessed, or false on failure.
The time is…
Availability in PHP 4.0
Enlarges the first character in the string.
Parameters
Parameter
Data type
Default value
Note
$str
string
not
Input string
Return values
string
Modified string.
echo ucfirst('hello'); // hello
echo ucfirst('cat'); /…
Availability in PHP 4.0
Format a number with grouped thousands
Parameters
Parameter
Data type
Default value
Note
$number
float
not
The number being formatted.
$decimals
int
0
Sets the number of decimal points.
$dec_point
string
'.'
…
Availability in PHP 4.0
Changes file group
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
$group
mixed
not
A group name or number.
Return values
bool
Returns true on success, otherwise false on…
Availability in versions: PHP 4.2.0
Dumps a string representation of an internal zend value to output
Parameters
Parameter
Data type
Default value
Note
$variable
mixed
not
The variable being evaluated.
Return values
void
Other resources…
Availability in versions: PHP 4.0.2
Calculate the hash value needed by EZMLM
Parameters
Parameter
Data type
Default value
Note
$addr
string
not
The email address that's being hashed.
Return values
int
The hash value of addr.
Other…
Availability in PHP 5.0
Get file extension for image type
Parameters
Parameter
Data type
Default value
Note
$imagetype
int
not
One of the IMAGETYPE_XXX constant.
$include_dot
bool
null
Whether to prepend a dot to the extension or not.…
Availability in PHP 5.0
Binary safe comparison of 2 strings from offset up to character length
Parameters
Parameter
Data type
Default value
Note
$main_str
string
not
Main string being compared.
$str
string
not
Main string being compared.
…
Availability in PHP 4.0
Generates a storable representation of a value
Parameters
Parameter
Data type
Default value
Note
$value
mixed
not
The value to be serialized. serialize handles all types, except the resource-type. You can even…
Availability in versions: PHP 4.3.0
Create a streams context
Parameters
Parameter
Data type
Default value
Note
$options
array
null,
Must be an associative array of associative arrays in the format $arr['wrapper']['option'] = $value.
$params…
Availability in PHP 4.0
Tells whether the filename is a directory
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file. If filename is a relative filename, it will be checked relative to the current working…
Availability in PHP 4.0
Sort fields by key using a user-defined comparison function
Parameters
Parameter
Data type
Default value
Note
$array
array
not
Input array.
$cmp_function
callback
not
Callback of the comparison function.
Return…
Availability in versions: PHP 5.5.0
Crop an image using the given coordinates and size, x, y, width and height
Parameters
Parameter
Data type
Default value
Note
$image
resource
An image resource, returned by one of the image creation…
Availability in PHP 4.0
Exponential expression
Parameters
Parameter
Data type
Default value
Note
$base
number
not
The base to use
$exp
number
not
The exponent
Return values
number
base raised to the power of exp.
If the result can be…
Availability in versions: PHP 5.1.2
Changes group ownership of symlink
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the symlink.
$group
mixed
not
The group specified by name or number.
Return values
bool…
Availability in versions: PHP 4.1.0
Calculate the length of the hypotenuse of a right-angle triangle
Parameters
Parameter
Data type
Default value
Note
$x
float
not
Length of first side
$y
float
not
Length of second side
Return values…
Availability in versions: PHP 4.0.3
Tells whether the file was uploaded via HTTP POST
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
The filename being checked.
Return values
bool
Returns true on success, otherwise…
Availability in PHP 4.0
Gets file size
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
int
the size of the file in bytes, or false (and generates an error
of level E_WARNING) in case…
Availability in PHP 5.0
Fetches all the headers sent by the server in response to a HTTP request
Parameters
Parameter
Data type
Default value
Note
$url
string
not
The target URL.
$format
int
null,
If the optional format parameter is set to…
Availability in versions: PHP 4.3.0
Calculate the sha1 hash of a string
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String being processed.
$raw_output
bool
null
If the optional raw_output is set to true, then the sha1…
PHP > 5.4.0
Get the size of an image from a string.
Parameters
Parameter
Data type
Default value
Note
$imagedata
string
$imageinfo
array
null
Return values
array
|bool Returns an array with 7 elements.
Index 0 and 1 contains…
Availability in PHP 4.0
Flush (send) the output buffer and turn off output buffering
Parameters
The function has no input parameters.
Return values
bool
Returns true on success, otherwise false on failure. Reasons for failure are first that you…
Availability in PHP 4.0
Gets file type
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
string
the type of the file. Possible values are fifo, char,
dir, block, link, file, socket and…
Availability in versions: PHP 4.0.3
Unregister function for execution each time it is checked
Parameters
Parameter
Data type
Default value
Note
$function_name
string
not
Function name in string form.
Return values
void
Additional Resources…
Availability in versions: PHP 4.3.0
Sets the include_path configuration option
Parameters
Parameter
Data type
Default value
Note
$new_include_path
string
not
The new value for the include_path
Return values
string
|bool the old include…
Availability in PHP 4.0
Calculate the similarity between two strings
Parameters
Parameter
Data type
Default value
Note
$first
string
not
The first string.
$second
string
not
The second string.
$percent
float
null
Return values
int
the…
Availability in PHP 4.0
Turn implicit flush on/off
Parameters
Parameter
Data type
Default value
Note
$flag
int
null
true to turn implicit flushing on, false otherwise.
Return values
void
Other resources
Official ob-implicit-flush…
Availability in PHP 4.0
Rewind the internal array pointer
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The input array.
Return values
mixed
the array value in the previous place that's pointed to by
the internal array…
Availability in PHP 4.0
Register a function for execution on shutdown
Parameters
Parameter
Data type
Default value
Note
$function
callback
not
The shutdown function to register.
$parameter
mixed
null,
It is possible to pass parameters to…
Availability in PHP 4.0
Open persistent Internet or Unix domain socket connection
Parameters
Parameter
Data type
Default value
Note
$hostname
string
not
$port
int
null,
$errno
int
null,
$errstr
string
null,
$timeout
float
null
…
Availability in versions: PHP 5.1.0
Converts a packed internet address to a human readable representation
Parameters
Parameter
Data type
Default value
Note
$in_addr
string
not
A 32bit IPv4, or 128bit IPv6 address.
Return values
string
…
Availability in PHP 4.0
Get a list of IPv4 addresses corresponding to a given Internet host
Parameters
Parameter
Data type
Default value
Note
$hostname
string
not
The host name.
Return values
array
an array of IPv4 addresses or false if…
Availability in versions: PHP 5.2.1
Shutdown a full-duplex connection
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
An open stream (opened with stream_socket_client, for example)
$how
int
not
One of the following…
Availability in versions: PHP 4.0.3
Register a function for execution on each tick
Parameters
Parameter
Data type
Default value
Note
$function
callback
not
The function name as a string, or an array consisting of an object and a method.
…
Availability in PHP 4.0
Get current time
Parameters
Parameter
Data type
Default value
Note
$return_float
bool
null
When set to true, a float instead of an array is returned.
Return values
mixed
By default an array is returned. If return…
Availability in PHP 4.0
Read entry from directory handle
Parameters
Parameter
Data type
Default value
Note
$dir_handle
resource
null
The directory handle resource previously opened with opendir. If the directory handle is not specified, the…
Availability in PHP 4.0
Return information about characters used in a string
Parameters
Parameter
Data type
Default value
Note
$string
string
not
The examined string.
$mode
int
null
See return values.
Return values
mixed
Depending on…
Availability in versions: PHP 5.1.2
Changes user ownership of symlink
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
$user
mixed
not
User name or number.
Return values
bool
Returns true on…
Availability in versions: PHP 4.2.0
Returns the floating point remainder (modulo) of the division
Parameters
Parameter
Data type
Default value
Note
$x
float
not
The dividend
$y
float
not
The divisor
Return values
float
The floating point…
Availability in PHP 4.0
Find first occurrence of a string
Parameters
Parameter
Data type
Default value
Note
$haystack
string
not
String being processed.
$needle
mixed
not
If needle is not a string, it is converted to an integer and applied…
Availability in PHP 4.0
Sort an array in reverse order
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The input array.
$sort_flags
int
null
You may modify the behavior of the sort using the optional parameter sort_flags,…
Availability in versions: PHP 4.1.0
Hyperbolic tangent
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument to process
Return values
float
Hyperbolic tangent arg
Other resources
Official documentation of the tanh…
Availability in PHP 4.0
Convert a quoted-printable string to an 8 bit string
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String being processed.
Return values
string
the 8-bit binary string.
Other resources
Official…
Availability in PHP 4.0
Rewind directory handle
Parameters
Parameter
Data type
Default value
Note
$dir_handle
resource
null
The directory handle resource previously opened with opendir. If the directory handle is not specified, the last link…
Availability in PHP 4.0
Tells whether the filename is a symbolic link
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
bool
true if the filename exists and is a symbolic link, false…
Availability in PHP 4.0
Gets file group
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
int
|bool the group ID of the file, or false in case
of an error. The group ID is returned in…
Availability in PHP 4.0
Set whether a client disconnect should abort script execution
Parameters
Parameter
Data type
Default value
Note
$value
string
null
If set, this function will set the ignore_user_abort ini setting to the given value. If…
Availability in PHP 4.0
Create an array containing a range of elements
Parameters
Parameter
Data type
Default value
Note
$low
mixed
not
Low value.
$high
mixed
not
High value.
$step
number
null
If a step value is given, it will be used as…
Availability in versions: PHP 4.3.0
&Alias; stream_get_meta_data
Retrieves header/meta data from streams/file pointers
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
The stream can be any stream created by fopen,…
Availability in versions: PHP 4.1.0
Import GET/POST/Cookie variables into the global scope
Parameters
Parameter
Data type
Default value
Note
$types
string
not
Using the types parameter, you can specify which request variables to import. You…
Availability in versions: PHP 4.0.1
Calculates the crc32 polynomial of a string
Parameters
Parameter
Data type
Default value
Note
$str
string
not
The data.
Return values
int
the crc32 checksum of str as an integer.
Other resources
Official…
Availability in versions: PHP 4.3.0
Sets file buffering on the given stream
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
The file pointer.
$buffer
int
not
The number of bytes to buffer. If buffer is 0 then write…
Availability in PHP 7.0
Returns active resources
Parameters
Parameter
Data type
Default value
Note
$type
string
not
If defined, this will cause get_resources() to only return resources of the given type. A list of resource types is available.…
Availability in PHP 4.0
Square root
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument to process
Return values
float
The square root of arg
or the special value NAN for negative numbers.
Other resources
Official…
Availability in PHP 4.0
Get value of pi
Parameters
The function has no input parameters.
Return values
float
The value of pi as float.
Other resources
Official documentation of the pi function
Availability in PHP 4.0
Sets an internal pointer to the last element of the array, which it also returns.
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The array. This array is passed by reference because it is modified…
Availability in PHP 4.0
Case insensitive string comparisons using a "natural order" algorithm
Parameters
Parameter
Data type
Default value
Note
$str1
string
not
The first string.
$str2
string
not
The second string.
Return…
Availability in PHP 4.0
Changes file owner
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
$user
mixed
not
A user name or number.
Return values
bool
Returns true on success, otherwise false on…
Availability in PHP 4.0
Set the internal pointer of an array to its first element
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The input array.
Return values
mixed
the value of the first array element, or false if the…
Availability in versions: PHP 4.0.4
Call a user function given with an array of parameters
Parameters
Parameter
Data type
Default value
Note
$function
callback
not
The function to be called.
$param_arr
array
not
The parameters to be passed…
Availability in PHP 4.0
Convert all applicable characters to HTML entities
Parameters
Parameter
Data type
Default value
Note
$string
string
not
String being processed.
$quote_style
int
null,
Like htmlspecialchars, the optional second quote…
PHP > 5.4.0
Import a stream.
Parameters
Parameter
Data type
Default value
Note
$stream
resource
not
Return values
void
|bool|null Returns FALSE or NULL on failure.
Other resources
Official socket-import-stream documentation
Availability in PHP 4.0
Decimal to binary
Parameters
Parameter
Data type
Default value
Note
$number
int
not
Decimal value to convert
Return values
string
Binary string representation of number
Other resources
Official decbin documentation
Availability in versions: PHP 4.0.5
Call a user method given with an array of parameters
Parameters
Parameter
Data type
Default value
Note
$method_name
string
$obj
object
$params
array
Return values
mixed
Availability in PHP 4.0
Parameters
Parameter
Data type
Default value
Note
$arg
float
not
Argument for processing in radians
Return values
float
The tangent to arg
Other resources
Official documentation of the tan function
Availability in PHP 5.0
Retrieve list of registered streams
Parameters
The function has no input parameters.
Return values
array
an indexed array containing the name of all stream wrappers
available on the running system.
Additional resources…
Availability in PHP 4.0
Finds the length of the first segment of a string consisting
Parameters
Parameter
Data type
Default value
Note
$subject
string
not
The string to examine.
$mask
string
not
The list of allowable characters to include…
Availability in PHP 4.0
Gets line from file pointer
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
$length
int
null
Reading ends when length - 1 bytes have been read, on a newline (which is included in the return…
Availability in PHP 4.0
Parameters
Parameter
Data type
Default value
Note
$library
string
not
This parameter is only the filename of the extension to load which also depends on your platform. For example, the sockets extension (if compiled as…
Availability in PHP 4.0
Round fractions down
Parameters
Parameter
Data type
Default value
Note
$value
float
not
The numeric value to round
Return values
float
value rounded to the next lowest integer.
The return value of floor is still of…
Availability in PHP 5.0
Find position of last occurrence of a case-insensitive string in a string
Parameters
Parameter
Data type
Default value
Note
$haystack
string
not
The string to search in
$needle
string
not
Note that the needle may be…
Availability in PHP 4.0
Send mail
Parameters
Parameter
Data type
Default value
Note
$to
string
not
Receiver, or receivers of the mail.
$subject
string
not
Subject of the email to be sent.
$message
string
not
$additional_headers
string…
Availability in PHP 5.0
&Alias; getmxrr
Parameters
Parameter
Data type
Default value
Note
$hostname
???
$mxhosts
???
$weight
???
Other sources
Official dns-get-mx documentation
Availability in PHP 4.0
&Alias; stream_set_blocking
Sets blocking or non-blocking mode on a stream.
This function works for any stream that supports non-blocking mode (currently, regular files and socket streams).
Parameters
Parameter
Data…
Availability in PHP 5.0
Search a string for any of a set of characters
Parameters
Parameter
Data type
Default value
Note
$haystack
string
not
The string where char_list is looked for.
$char_list
string
not
This parameter is case sensitive.
…
Availability in PHP 4.0
Pack data into binary string
Parameters
Parameter
Data type
Default value
Note
$format
string
not
The format string consists of format codes followed by an optional repeater argument. The repeater argument can be…
Availability in PHP 5.0
Accept a connection on a socket created by stream_socket_server
Parameters
Parameter
Data type
Default value
Note
$server_socket
resource
not
Override the default socket accept timeout. Time should be given in seconds.…
Availability in versions: PHP 5.1.0
Unregister a URL wrapper
Parameters
Parameter
Data type
Default value
Note
$protocol
string
not
Return values
bool
Returns true on success, otherwise false on failure.
Other resources
Official…
Available in PHP 4, PHP 5, PHP 7
Opens a connection to the system logger.
Parameters
Parameter
Data type
Default value
Note
$ident
string
not
Identifier (of type string) to be added to the message.
$option
int
not
The $option argument is…
Availability in PHP 4.0
Check DNS records corresponding to a given Internet host name or IP address
Parameters
Parameter
Data type
Default value
Note
$host
string
not
host may either be the IP address in dotted-quad notation or the host name.…
Availability in PHP 4.0
Closes an open file pointer
Parameters
Parameter
Data type
Default value
Note
$handle
resource
not
The file pointer must be valid, and must point to a file successfully opened by fopen or fsockopen.
Return values…
Availability in versions: PHP 5.5.0
Crop an image automatically using one of the available modes
Parameters
Parameter
Data type
Default value
Note
$image
resource
An image resource, returned by one of the image creation functions, such as {…
Availability in PHP 4.0
Sort fields using a user-defined comparison function and preserve index assignments
Parameters
Parameter
Data type
Default value
Note
$array
array
not
Input array.
$cmp_function
callback
not
For examples of user…
Availability in PHP 4.0
Un-quotes a quoted string
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String being processed.
Return values
string
a string with backslashes stripped off.
(' becomes ' and so on.)
Double…
Availability in PHP 4.0
Decodes data encoded with MIME base64
Parameters
Parameter
Data type
Default value
Note
$data
string
not
The encoded data.
$strict
bool
null
Returns false if input contains character from outside the base64 alphabet.…
Availability in PHP 4.0
Strip whitespace (or other characters) from the end of a string.
Without the second parameter, rtrim() will strip these characters:
" " (ASCII 32 (0x20)), an ordinary space.
"\t" (ASCII 9 (0x09)), a tab.
"\n" (ASCII 10 (0x0A…
Version availability: PHP 5.1.3
Gets the average system load. Same values as you know from the htop tool in Linux.
Example:
$load = sys_getloadavg();
if ($load[0] > 0.80) { // is the load greater than 80%?
header('HTTP/1.1 503 Too busy, try…
Availability in PHP 4.0
Import variables into the current symbol table from an array
Parameters
Parameter
Data type
Default value
Note
$var_array
array
not
$extract_type
int
null,
$prefix
string
null
Return values
int
the number of…
Availability in PHP 4.0
Converts the number in degrees to the radian equivalent
Parameters
Parameter
Data type
Default value
Note
$number
float
not
Angular value in degrees
Return values
float
The radian equivalent of number
Other…
Availability in PHP 4.0
Tells what the user's browser is capable of
Parameters
Parameter
Data type
Default value
Note
$user_agent
string
null,
The User Agent to be analyzed. By default, the value of HTTP User-Agent header is used; however,…
Availability in PHP 4.0
Fetch a key from an array
Parameters
Parameter
Data type
Default value
Note
$array
array
not
The array.
Return values
mixed
The key function simply returns the
key of the array element that's currently being pointed…
Availability in versions: PHP 4.3.0
Get Mime-Type for image-type returned by getimagesize,
Parameters
Parameter
Data type
Default value
Note
$imagetype
int
not
One of the IMAGETYPE_XXX constants.
Return values
string
The returned values…
Availability in PHP 4.0
Open directory handle
Parameters
Parameter
Data type
Default value
Note
$path
string
not
The directory path that is to be opened
$context
resource
null
For a description of the context parameter, refer to the streams…
Availability in PHP 5.0
Send a cookie without urlencoding the cookie value
Parameters
Parameter
Data type
Default value
Note
$name
string
not
$value
string
null,
$expire
int
null,
$path
string
null,
$domain
string
null,
$secure…
Version availability: PHP 5.3.0
Make a string's first character lowercase
Parameters
Parameter
Data type
Default value
Note
$str
string
not
String being processed.
Return values
string
the resulting string.
Other resources
Official lcfirst…
Availability in PHP 4.0
Decimal to octal
Parameters
Parameter
Data type
Default value
Note
$number
int
not
Decimal value to convert
Return values
string
Octal string representation of number
Other resources
Official documentation of the…
Availability in PHP 5.0
Returns a list of response headers sent (or ready to send)
Parameters
The function has no input parameters.
Return values
array
A numerically indexed array of headers.
Other resources
Official headers-list documentation
Availability in PHP 4.0
Gets the value of a configuration option
Parameters
Parameter
Data type
Default value
Note
$varname
string
not
The configuration option name.
Return values
string
the value of the configuration option as a string on…
Availability in versions: PHP 4.3.0
Formats a number as a currency string
Parameters
Parameter
Data type
Default value
Note
$format
string
not
The format specification consists of the following sequence: a % character
$number
float
not
The…
Availability in PHP 4.0
Gets file modification time
Parameters
Parameter
Data type
Default value
Note
$filename
string
not
Path to the file.
Return values
int
|bool the time the file was last modified, or false on failure.
The time is…
Parameters
Parameter
Data type
Default value
Note
$str
string
not
$replace_pairs
array
not
Return values
string
A copy of str, translating all occurrences of each character in from to the corresponding character in to.
Availability in PHP 4.0
Parameters
The function has no input parameters.
Availability in PHP 4.0
Parameters
The function has no input parameters.
The fopen() function represents low-level access to files on disk.
The programmer has to do everything himself (opening the file, reading the data, writing new data, closing the file).
If you just need to read and write files quickly, there are…
Support PHP 4> = 4.1.0, PHP 5
acosh - hyperbolic cosine
Description
float acos ( float $arg )
Vary the arcus cosine of the arg parameter in radians. acos() is the inverse of the cos() function, which means that a==cos(acos(a)) for every value in…
Support PHP 4, PHP 5
Short description: sets the internal pointer of an array to its last element.
Requirements.
Description
The end() function sets an internal array pointer to the last element and returns its value.
Similar functions
current()…