Unit 4 PHP1
Unit 4 PHP1
Output:
array_chunk() Function
• The array_chunk() function splits an array into
chunks of new arrays. output
• Eg:
array_column()
• The array_column() function returns the
values from a single column in the input array
Eg: Output
array_combine()
This function is used to combine two
different arrays to combine them into
one array.
Example
array_count_values()
• The array_count_values() function counts all the values of an
array.
array_diff()
• The array_diff() function compares the values of two (or
more) arrays, and returns the differences.
**PHP date() Function