top of page
Search

PHP - Array Functions

    Code reusability and better understanding of logical flow in the program.

       PHP Array Functions ,  PHP bzip2 Functions,  PHP Calendar Functions,  PHP Class/Object Functions,  PHP Character Functions, PHP Date & Time Functions ,  PHP Deque Functions, PHP Directory Functions , PHP Error Handling Functions , PHP File System Functions ,  PHP Function Handling Functions,  PHP MySQL Functions,  PHP Network Functions,  PHP ODBC Functions,  PHP OpenSSL Functions, PHP Password Functions,  PHP Queue Functions, PHP Sequence Functions, PHP Session Functions,  PHP String Functions, PHP Thread Functions, PHP Threaded Functions,  PHP Tokenizer Functions,  PHP URL's Functions, PHP XML Functions,  PHP XML Parsing Functions, PHP XML Reader Functions, PHP XML Writer Functions

        array() - Creates an array.

        array_change_key_case() - Changes all keys in an array to lowercase or uppercase.

        array_chunk() -  Splits an array into chunks of arrays.

        array_column() - Returns the values from a single column in the input array.

        array_combine() - Creates an array by using the elements from one "keys" array and one "values" array.

        array_count_values() - Counts all the values of an array.

        array_diff() -  Compare arrays, and returns the differences (compare values only).

        array_diff_assoc() -  Compare arrays, and returns the differences (compare keys and values).

        array_diff_key() - Compare arrays, and returns the differences (compare keys only).

        array_diff_uassoc() - Compare arrays, and returns the differences (compare keys and values, using a user-defined key comparison function).

        array_diff_ukey() -  Compare arrays, and returns the differences (compare keys only, using a user-defined key comparison function).

        array_fill() - Fills an array with values.

        array_fill_keys() -  Fills an array with values, specifying keys.

        array_flip() - Flips/Exchanges all keyswith their associated values in an array.

        array_intersect() - Compare arrays, and returns the matches (compare values only).

        array_intersect_assoc() -  Compare arrays and returns the matches (compare keys and values).

        array_intersect_key() - Compare arrays, andreturns the matches (compare keys only).

        array_intersect_uassoc() - Compare arrays, and returns the matches (compare keys and values, using a user-defined key comparison function).

        array_intersect_ukey() -  Compare arrays, and returns the matches (compare keysonly, using a user-defined key comparison function).

        array_key_exists() - Checks if the specified key exists in the array.

        array_keys() -  Returns all the keys of an array.

        array_map() - Sends each value of an array to a user-made function, which returns new values.

        array_merge() -  Merges one or more arrays into one array.

        array_merge_recursive() - Merges one or more arrays into one array recursively.

        array_multisort() -  Sorts multiple or multi-dimensional arrays.

        array_pad() - Inserts a specified number of items, with a specified value, to an array.

        array_pop() -  Deletes the last element of an array.

        array_product() -  Calculates the product of the values in an array.

        array_push() - Inserts one or more elements to the end of an array.

        array_rand() -  Returns one or more randomkeys from an array.

        array_reduce() - Returns an array as a string, using a user-defined function.

        array_replace() -  Replaces the values of the first array with the values from following arrays.

        array_replace_recursive() -  Replaces the values of the first array with the values from following arrays recursively.

        array_reverse() - Returns an array in the reverse order.



        Want to read more?

        Subscribe to questionbankos.com to keep reading this exclusive post.

         
         
         

        Recent Posts

        See All
        Programming Using C++

        Course Fee - 1200/- (Rupees Twelve Hundred Only) OR pay Rs. 10/- (Rupees Ten Only) as a session fee to join any session of your choice. Sessions are only for Members of this educational web site. Yo

         
         
         
        Sorting Technique - Counting Sort

        Q.1) How Counting Sort works? Counting sort maintains a separate array to count occurrences of each element and stores them in another array as per their sorted position which is calculates on the bas

         
         
         
        bottom of page