Functions

Hide Ported | Show Unported | Show Not porting | Show Experimental | Show Workbench | Show All

Arrays
Ported Creates an array.
Ported Retuns an array with all string keys lowercased [or uppercased].
Ported Split array into chunks.
Ported Creates an array by using the elements of the first parameter as keys and the elements of the second as the corresponding values.
Ported Return the value as key and the frequency of that value in input as value.
Ported Returns the entries of arr1 that have values which are not present in any of the others arguments.
Ported Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal.
Ported Returns the entries of arr1 that have keys which are not present in any of the others arguments. This function is like array_diff() but works on the keys instead of the values. The associativity is preserved.
Ported Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Elements are compared by user supplied function.
Ported Returns the entries of arr1 that have keys which are not present in any of the others arguments. User supplied function is used for comparing the keys. This function is like array_udiff() but works on the keys instead of the values. The associativity is preserved.
Ported Create an array containing num elements starting with index start_key each initialized to val.
Ported Create an array using the elements of the first parameter as keys each initialized to val.
Ported Filters elements from the array via the callback.
Ported Return array with key <-> value flipped.
Ported Returns the entries of arr1 that have values which are present in all the other arguments.
Ported Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check.
Ported Returns the entries of arr1 that have keys which are present in all the other arguments. Kind of equivalent to array_diff(array_keys($arr1), array_keys($arr2)[,array_keys(...)]). Equivalent of array_intersect_assoc() but does not do compare of the data.
Ported Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check and they are compared by using an user-supplied callback.
Ported Returns the entries of arr1 that have keys which are present in all the other arguments. Kind of equivalent to array_diff(array_keys($arr1), array_keys($arr2)[,array_keys(...)]). The comparison of the keys is performed by a user supplied function. Equivalent of array_intersect_uassoc() but does not do compare of the data.
Ported Return just the keys from the input array, optionally only for the specified search_value.
Ported Checks if the given key or index exists in the array.
Ported Applies the callback to the elements in given arrays.
Ported Merges elements from passed arrays into one array.
Ported Recursively merges elements from passed arrays into one array.
Ported Sort multiple arrays at once similar to how ORDER BY clause works in SQL.
Ported Returns a copy of input array padded with pad_value to size pad_size.
Ported Pops an element off the end of the array.
Ported Returns the product of the array entries.
Ported Pushes elements onto the end of the array.
Ported Return key/keys for random entry/entries in the array.
Ported Iteratively reduce the array to a single value via the callback.
Ported Replaces elements from passed arrays into the first array.
Ported Replaces elements from passed arrays into the first array recursively.
Ported Return input as a new array with the order of the entries reversed.
Ported Searches the array for a given value and returns the corresponding key if successful.
Ported Pops an element off the beginning of the array.
Ported Returns elements specified by offset and length.
Ported Removes the elements designated by offset and length and replace them with supplied array.
Ported Returns the sum of the array entries.
Ported Returns the entries of arr1 that have values which are not present in any of the others arguments. Elements are compared by user supplied function.
Ported Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Entries are compared by user supplied function.
Ported Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions.
Ported Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback.
Ported Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Data is compared by using an user-supplied callback.
Ported Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks.
Ported Removes duplicate values from array.
Ported Pushes elements onto the beginning of the array.
Ported Return just the values from the input array.
Ported Apply a user function to every member of an array.
Ported Apply a user function recursively to every member of an array.
Ported Sort an array in reverse order and maintain index association.
Ported Sort an array and maintain index association.
Ported Creates a hash containing variables and their values.
Ported Count the number of elements in a variable (usually an array).
Ported Return the element currently pointed to by the internal array pointer.
Ported Removes the aggregated methods and properties from an object.
Ported Return the currently pointed key..value pair in the passed array, and advance the pointer to the next element.
Ported Advances array argument's internal pointer to the last element and return it.
Ported Imports variables into symbol table from an array.
Ported Checks if the given value exists in the array.
Ported Return the key of the element currently pointed to by the internal array pointer.
Ported Sort an array by key value in reverse order.
Ported Sort an array by key.
Ported Sort an array using case-insensitive natural sort.
Ported Sort an array using natural sort.
Ported Move array argument's internal pointer to the next element and return it.
Ported Alias of current()
Ported Move array argument's internal pointer to the previous element and return it.
Ported Create an array containing the range of integers or characters from low to high (inclusive).
Ported Set array argument's internal pointer to the first element and return it.
Ported Sort an array in reverse order.
Ported Randomly shuffle the contents of an array.
Ported Alias of count()
Ported Sort an array.
Ported Sort an array with a user-defined comparison function and maintain index association.
Ported Sort an array by keys using a user-defined comparison function.
Ported Sort an array by values using a user-defined comparison function.
BCMath Arbitrary Precision Mathematics
Ported Returns the sum of two arbitrary precision numbers.
Ported Compares two arbitrary precision numbers.
Ported Returns the quotient of two arbitrary precision numbers (division).
Ported Returns the multiplication of two arbitrary precision numbers.
Ported Function to round bc string.
Ported Sets default scale parameter for all bc math functions.
Ported Returns the difference between two arbitrary precision numbers.
Character type checking
Ported Checks for alphanumeric character(s).
Ported Checks for alphabetic character(s).
Ported Checks for control character(s).
Ported Checks for numeric character(s).
Ported Checks for any printable character(s) except space.
Ported Checks for lowercase character(s).
Ported Checks for printable character(s).
Ported Checks for any printable character which is not whitespace or an alphanumeric character.
Ported Checks for whitespace character(s).
Ported Checks for uppercase character(s).
Ported Checks for character(s) representing a hexadecimal digit.
Class/Object Information
Ported Creates an alias for a class.
Ported Checks if the class exists.
Ported Retrieves the class name.
Ported Returns an array of method names for class or class instance.
Ported Returns an array of default properties of the class.
Ported Returns an array with the name of the defined classes.
Ported Returns an array of object properties.
Ported Checks if the class method exists.
Ported Checks if the object or class has a property.
Classkit
Ported Import new class method definitions from a file.
Ported Dynamically adds a new method to a given class.
Ported Copies a method from class to another.
Ported Dynamically changes the code of the given method.
Ported Dynamically removes the given method.
Ported Dynamically changes the name of the given method.
Date and Time
Ported Returns true(1) if it is a valid date in gregorian calendar.
Ported Format a local date/time.
Ported Gets the default timezone used by all date/time functions in a script.
Ported Sets the default timezone used by all date/time functions in a script.
Ported Returns associative array with detailed info about given date.
Ported Get date/time information.
Ported Returns the current time as array.
Ported Format a GMT date/time.
Ported Get UNIX timestamp for a GMT date.
Ported Format a GMT/UCT time/date according to locale settings.
Ported Format a local time/date as integer.
Ported Returns the results of the C system call localtime as an associative array if the associative_array argument is set to 1 other wise it is a regular array.
Ported Returns either a string or a float containing the current time in seconds and microseconds.
Ported Get UNIX timestamp for a date.
Ported Format a local time/date according to locale settings.
Ported Parse a time/date generated with strftime().
Ported Convert string representation of date and time to a timestamp.
Ported Return current UNIX timestamp.
Ported Alias of DateTimeZone::listAbbreviations().
Ported Alias of DateTimeZone::listIdentifiers().
Error Handling and Logging
Ported Get the last occurred error.
Ported Return the current error_reporting level, and if an argument was passed - change to the new level.
Ported Generates a user-level error/warning/notice message.
Ported Alias of trigger_error().
Filesystem
Ported Returns the filename component of the path.
Ported Returns the directory name component of the path.
Ported Close an open file pointer.
Ported Test for end-of-file on a file pointer.
Ported Get a character from file pointer.
Ported Get line from file pointer and parse for CSV fields.
Ported Get a line from file pointer.
Ported Get a line from file pointer and strip HTML tags.
Ported Read entire file into an array.
Ported Get last modification time of file.
Ported Get file size.
Ported Returns true if filename exists.
Ported Read the entire file into a string.
Ported Open a file or a URL and return a file pointer.
Ported Output all remaining data from a file pointer.
Ported Binary-safe file read.
Ported Implements a mostly ANSI compatible fscanf().
Ported Seek on a file pointer.
Ported Get file pointer's read/write position.
Ported Returns information about a certain string.
Ported Close a file pointer opened by popen().
Ported Execute a command and open either a read or a write pipe to it.
Ported Output a file or a URL.
Ported Return the resolved path.
Ported Rewind the position of a file pointer.
Function Handling
Ported Call a user function which is the first parameter.
Ported Call a user function which is the first parameter with the arguments contained in array.
Ported Creates an anonymous function, and returns its name (funny, eh?)
Ported Call a static method.
Ported Call a static method and pass the arguments as array.
Ported Checks if the function exists.
Ported Get the $arg_num'th argument that was passed to the function.
Ported Returns an array comprising a function's argument list.
Ported Get the number of arguments that were passed to the function.
Ported Returns an array of all defined functions.
Ported Register a user-level function to be called on request termination.
i18n
Ported Get's the default locale.
Ported Sets the default locale.
Internal
Ported Internal bc implementation.
JavaScript Object Notation
Ported Decodes the JSON representation into a PHP value.
Ported Returns the JSON representation of a value.
Ported Returns the last error occurred.
Language & Control Structures
Ported The include() statement includes and evaluates the specified file.
Ported The include_once() statement includes and evaluates the specified file during the execution of the script.
Ported require() is identical to include() except upon failure it will also produce a fatal E_COMPILE_ERROR level error.
Ported The require_once() statement is identical to require() except PHP will check if the file has already been included, and if so, not include (require) it again.
Mail
Ported Send an email message.
Mathematical Functions
Ported Return the absolute value of the number.
Ported Return the arc cosine of the number in radians.
Ported Returns the inverse hyperbolic cosine of the number, i.e. the value whose hyperbolic cosine is number.
Ported Returns the arc sine of the number in radians.
Ported Returns the inverse hyperbolic sine of the number, i.e. the value whose hyperbolic sine is number.
Ported Returns the arc tangent of the number in radians.
Ported Returns the arc tangent of y/x, with the resulting quadrant determined by the signs of y and x.
Ported Returns the inverse hyperbolic tangent of the number, i.e. the value whose hyperbolic tangent is number.
Ported In this category.
Ported Returns the decimal equivalent of the binary number.
Ported Returns the next highest integer value of the number.
Ported Returns the cosine of the number in radians.
Ported Returns the hyperbolic cosine of the number, defined as (exp(number) + exp(-number))/2.
Ported Returns a string containing a binary representation of the number.
Ported Returns a string containing a hexadecimal representation of the given number.
Ported Returns a string containing an octal representation of the given number.
Ported Converts the number in degrees to the radian equivalent.
Ported Returns e raised to the power of the number.
Ported Returns exp(number) - 1, computed in a way that accurate even when the value of number is close to zero.
Ported Returns the next lowest integer value from the number.
Ported Returns the remainder of dividing x by y as a float.
Ported Returns the maximum value a random number can have.
Ported Returns the decimal equivalent of the hexadecimal number.
Ported Returns sqrt(num1*num1 + num2*num2).
Ported Returns whether argument is finite.
Ported Returns whether argument is infinite.
Ported Returns whether argument is not a number.
Ported lcg_value() returns a pseudo random number in the range of (0, 1). The function combines two CGs with periods of 2^31 - 85 and 2^31 - 249. The period of this function is equal to the product of both primes.
Ported Returns the natural logarithm of the number, or the base log if base is specified.
Ported Returns the base-10 logarithm of the number.
Ported Returns log(1 + number), computed in a way that accurate even when the value of number is close to zero.
Ported Return the highest value in an array or a series of arguments.
Ported Return the lowest value in an array or a series of arguments.
Ported Returns the maximum value a random number from Mersenne Twister can have.
Ported Returns a random number from Mersenne Twister.
Ported Returns the decimal equivalent of an octal string.
Ported Returns an approximation of pi.
Ported Returns base raised to the power of exponent. Returns integer result when possible.
Ported Converts the radian number to the equivalent number in degrees.
Ported Returns a random number.
Ported Returns the number rounded to specified precision.
Ported Returns the sine of the number in radians.
Ported Returns the hyperbolic sine of the number, defined as (exp(number) - exp(-number))/2.
Ported Returns the square root of the number.
Ported Returns the tangent of the number in radians.
Ported Returns the hyperbolic tangent of the number, defined as sinh(number)/cosh(number).
Miscellaneous Functions
Ported Given the name of a constant this function will return the constant's associated value.
Ported Define a new constant.
Ported Check whether a constant exists.
Ported Takes one or more arguments and packs them into a binary string according to the format argument.
Ported Return source with stripped comments and whitespace.
Ported Make the script sleep until the specified time.
Ported Generates a unique ID.
Net Gopher
Ported Translate a gopher formatted directory entry into an associative array.
Network
Ported Converts a packed inet address to a human readable IP address string.
Ported Converts a human readable IP address to a packed binary string.
Ported Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address.
Ported Converts an (IPv4) Internet network address into a string in Internet standard dotted format.
Ported Send a cookie.
Ported Send a cookie with no url encoding of the value.
Object Aggregation/Composition
Ported Aggregates methods and properties defined in a class to an existing object. Methods and properties with names starting with an underscore character (_) are considered private to the aggregated class and are not used, constructors are also excluded from the aggregation procedure.
Output Buffering Control
Ported Clean (delete) the current output buffer.
Ported Clean the output buffer, and delete current output buffer.
Ported Flush (send) the output buffer, and delete current output buffer.
Ported Flush (send) contents of the output buffer. The last buffer content is sent to next buffer.
Ported Get current buffer contents and delete current output buffer.
Ported Return the contents of the output buffer.
Ported Get current buffer contents, flush (send) the output buffer, and delete current output buffer.
Ported Return the length of the output buffer.
Ported Return the nesting level of the output buffer.
Ported Get status of output buffers.
Ported List all output handlers in use.
Ported Turn on Output Buffering (specifying an optional output handler)..
PHP Options and Information
Ported Checks if assertion is false.
Ported Set/get the various assert flags.
Ported Get the value of an environment variable.
Ported Get time of last page modification.
Ported Get the value of a PHP configuration option.
Ported Return an array containing the names and values of all defined constants.
Ported Returns an array with the names of functions belonging to the named extension.
Ported Returns an array with the file names that were included (includes require and once varieties).
Ported Gets the current include_path configuration option.
Ported Alias of get_included_files().
Ported Alias of ini_set().
Ported Get a configuration option.
Ported Get all configuration options.
Ported Restore the value of a configuration option specified by varname.
Ported Set a configuration option, returns false on error and the old value of the configuration option on success.
Ported Return the current PHP version.
Ported Return the actual loaded ini filename.
Ported Return comma-separated string of .ini files parsed from the additional ini dir.
Ported Set the value of an environment variable.
Ported Restores the value of the include_path configuration option.
Ported Sets the include_path configuration option.