Another day, another PHP function

Pulling from @DailyPHP

HomeAboutRSSTwitter

Oct 15 filter_var

Filters a variable with a specified filter

Oct 12 array_combine

Creates an array by using one array for keys and another for its values

Oct 9 str_word_count

Return information about words used in a string

Sep 21 compact

Create an array containing variables and their values

Sep 11 call_user_func_array

Call a user function given with an array of parameters

Aug 27 create_function

Creates an anonymous function and returns a unique name for it

Aug 18 microtime

Return current Unix timestamp with microseconds

Aug 17 libxml_get_errors

Retrieve array of libxml errors

Aug 13 array_count_values

Returns an array of counts for each value found in an array

Aug 12 getcwd

Gets the current working directory

Aug 11 file_put_contents

Write a string to a file

Aug 10 tmpfile

Creates a temporary file with a unique name in read-write mode and returns a file handle

Jul 29 curl_multi_init

Returns a new cURL multi handle, which allows the processing of multiple cURL handles in parallel

Jul 20 exec

Execute an external program

Jul 16 sha1_file

Calculate the sha1 hash of a file

Jul 15 mb_ereg

Regular expression match with multibyte support