Another day, another PHP function

Pulling from @DailyPHP

HomeAboutRSSTwitter

Oct 21 is_nan

Finds whether a value is not a number

Oct 6 array_flip

Exchanges all keys with their associated values in an array

Apr 19 memory_get_usage

Returns the amount of memory allocated to PHP

Mar 25 usleep

Delay execution in microseconds

Mar 19 uksort

Sort an array by keys using a user-defined comparison function

Mar 17 set_exception_handler

Sets a user-defined exception handler function

Feb 15 array_chunk

Split an array into chunks

Feb 8 iconv

Convert string to requested character encoding

Jan 29 tempnam

Creates a file with unique filename

Jan 27 array_pad

Pad array to the specified length with a value

Jan 20 set_error_handler

Sets a user-defined error handler function

Jan 6 get_included_files

Returns an array with the names of included or required files

Dec 16 pathinfo

Returns information about a file path

Dec 11 array_uintersect

Computes the intersection of arrays, compares data by a callback function

Dec 10 iterator_to_array

Copy the iterator into an array

Nov 18 ob_get_contents

Return the contents of the output buffer