16. PHP Array Functions -3 | array_diff extended, array_diff_assoc, array_diff_key | ATIBlog

Veröffentlicht am: 20 November 2017
auf dem Kanal: ATIBlog
433
5

ATIBlog php array functions tutorial in hindi.

This tutorial contains :
array_diff() – extended.
array_diff_assoc()
array_diff_key()

1. More on array_diff()
You can add more arrays as parameters and This Function check for values only.
It’s just a SIMPLE DIFFERENCE of ARRAYS
In array_diff( $arr1, $arr2, $arr3, $arr4,…….)
Difference of $arr1 and $arr2 is again calculated with $arr3, again the resulting difference is calculated with $arr4, and so on.
Example 

2.array_diff_assoc()
Compares two associative arrays and return the difference.
It checks both the keys and values.
Parameter1 : first array.
Parameter2 : second array.
Like array_diff , it can take more arrays to compare.
Returns an array of values of the first array that are not present in the second array.

3. array_diff_key()
It compares the keys of the two arrays.
Same like array_diff (but checks only keys).
Parameter1 : First array.
Parameter2 : Second array.
It can More arrays to compare.
Returns an array that contains the differences.


Auf dieser Seite können Sie das Online-Video 16. PHP Array Functions -3 | array_diff extended, array_diff_assoc, array_diff_key | ATIBlog mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer ATIBlog 20 November 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 433 Mal angesehen und es wurde von 5 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!