15. PHP Array Functions-2 | array_combine, array_count_values, array_diff | ATIBlog

Pubblicato il: 19 novembre 2017
sul canale di: ATIBlog
492
6

ATIBlog PHP tutorial in hindi . PHP ARRAY FUNCTIONS-2
array_combine()
array_count_values()
array_diff()

1.array_combine()
Creates an array by combining two arrays. One array contains the keys and another array contains the values.
Parameter1 : array of keys.
Parameter2 : array of values.
Returns the resulting array. FALSE if number of elements not matched/ any array is empty.

2. array_count_values()
It is used to count the values in an array. For example, if any array element is repeating, you can check the number of repetitions.
Parameter1 : An Array to work
Returns an array containing keys as values and values as the number of repetition.
array_count_values($arr);

3. array_diff()
It compares the first_array against second_array and returns the difference.
Parameter1: An Array (1st array)
Parameter2: An Array (2nd array)
Returns an array containing the difference.


In questa pagina del sito puoi guardare il video online 15. PHP Array Functions-2 | array_combine, array_count_values, array_diff | ATIBlog della durata di ore minuti seconda in buona qualità , che l'utente ha caricato ATIBlog 19 novembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 492 volte e gli è piaciuto 6 spettatori. Buona visione!