Things to do in Cape Town, the Helderberg, and the Cape Winelands

Tag array_diff

PHP: Compare the Keys of an Array and find the Difference

To compare two arrays to see if there is a difference, one often makes use of the array_diff function which takes two arrays, compares array1 against array2 and then returns the difference. Now if you actually want to check for… Continue Reading →

© 2021 An Exploring South African — Powered by WordPress