Another day, another PHP function

Pulling from @DailyPHP

HomeAboutRSSTwitter

May 7 next

Advance the internal array pointer of an array

May 6 readfile

Reads a file and writes it to the output buffer

May 1 trim

Strip whitespace (or other characters) from the beginning and end of a string

Apr 30 ip2long

Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address

Apr 29 array_diff

Computes the difference of arrays

Apr 28 setcookie

Send a cookie

Apr 27 asort

Sort an array and maintain index association

Apr 23 unset

Unset (destroy) a given variable

Apr 22 getlastmod

Gets time of last page modification

Apr 20 preg_grep

Return array entries that match the pattern

Apr 17 parse_str

Parses the string into variables

Apr 16 str_pad

Pad a string to a certain length with another string

Apr 15 implode

Join array elements with a string

Apr 14 gethostbyaddr

Get the Internet host name corresponding to a given IP address

Apr 13 parse_ini_file

Parse a configuration file

Apr 9 get_class

Returns the name of the class of an object

Apr 8 array_rand

Pick one or more random entries out of an array

Apr 7 preg_replace_callback

Perform a regular expression search and replace using a callback function

Apr 6 session_write_close

Write session data and end session