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 function
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. Detailed des…
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 ev…
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 functions to…
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 ENT_COMPA…
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 (configurati…
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 $expression mixe…
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 have…
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 use an…
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 access). No…
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 replacement wi…
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 is alphabet…
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 allowed range fo…
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 Official atan2…
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, otherwise fals…
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-infinite doc…
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 indicates…
Availability in PHP 4.0 Initializes all syslog related variables Parameters The function has no input parameters. Return values void
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 resources…
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 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 replace a previ…
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 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 characters you want to…
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 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://www.php.n…
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 values array An assoc…
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 Official usle…
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 documentation
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 one…
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 number. Return…
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. $details bo…
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 1 or greater t…
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 tokeni…
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 currently being…
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 returns the ve…
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 ne…
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 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, The value of…
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 resources Off…
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 available bytes…
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 resources Official is…
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 implements the p…
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 the resolved…
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 null Return val…
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 failure. O…
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 Official hexdec do…
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-uudecode
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. $microseconds int…
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.g. the sa…
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 search fo…
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. Return values ar…
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 Official strval do…
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 $subject m…
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 $offset int n…
(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, non-empty array…
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 Can be either the name of a function stored in a string variable, or an o…
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 length of…
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 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 sent, except…
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/manual/en/fu…
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 string, c…
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 PSFS_PASS_ON Filter…
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 converted…
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 on success,…
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 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 locale is &…
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 parameter sort_fl…
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 date…
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 to true,…
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, except that it i…
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 integer les…
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 base name of…
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 &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 occurred. Other resources…
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 for cli-set-p…
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 documentat…
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. O…
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 function
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 stream-context…
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 documentation
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-transpo…
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…
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 number converted…
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 of bytes as…
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 IPv4 addre…
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 varname or array…
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 exists; fal…
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 the first is…
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 data returned…
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/manual/en/f…
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 mode, and…
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 failure. Other resource…
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 documentation
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 of 20. Re…
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 Official php-u…
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 &Alias; set_magic_quotes_runtime Parameters Parameter Data type Default value Note $new_setting ???
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 documentation of 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 unmodified…
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 otherwise. Other…