Another day, another PHP function

Pulling from @DailyPHP

HomeAboutRSSTwitter

Jun 9 ftruncate

Truncates a file to a given length

Jun 8 strrev

Reverse a string

Jun 5 array_pop

Pop the element off the end of array

Jun 4 mt_rand

Generate a better random value

Jun 3 ksort

Sort an array by key

Jun 1 strspn

Find the length of the initial segment matching a mask

May 28 mail

Sends an email

May 27 constant

Returns the value of a constant

May 26 is_subclass_of

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

May 22 idate

Format a local time/date as integer

May 21 iterator_to_array

Copy the iterator into an array

May 20 ob_start

Turn on output buffering

May 19 simplexml_load_file

Interprets an XML file into an object

May 18 decbin

Returns a string containing a binary representation of the given integer

May 15 intval

Get the integer value of a variable

May 14 get_object_vars

Gets the properties of the given object

May 13 func_get_args

Returns an array comprising a function's argument list

May 12 set_include_path

Sets the include_path configuration option

May 11 get_meta_tags

Extracts all meta tag content attributes from a file and returns an array