Another day, another PHP function

Pulling from @DailyPHP

HomeAboutRSSTwitter

Jul 16 sha1_file

Calculate the sha1 hash of a file

Jul 15 mb_ereg

Regular expression match with multibyte support

Jul 14 is_a

Checks if the object is of this class or has this class as one of its parents

Jul 13 isset

Determine if a variable is set and is not NULL

Jul 10 strftime

Format a local time/date according to locale settings

Jul 8 max

Find the highest value in an array or a list of values

Jul 7 strpbrk

Search a string for any of a set of characters and return a string starting from the character found

Jul 2 stat

Gives information about a file

Jun 30 preg_split

Split string by a regular expression

Jun 29 floor

Round fractions down

Jun 26 error_log

Send an error message somewhere

Jun 25 set_exception_handler

Sets a user-defined exception handler function

Jun 23 ucwords

Uppercase the first character of each word in a string

Jun 22 getdate

Returns an associative array containing the date information of a timestamp

Jun 19 get_class_vars

Get the default properties of the class

Jun 18 array_change_key_case

Changes the case of all keys in an array

Jun 17 is_uploaded_file

Tells whether the file was uploaded via HTTP POST

Jun 15 natsort

Sort an array using a "natural order" algorithm