Skip to main content
  • Search Multidimensional Arrays for key=>value

    Publish Date: January 30th, 2016 | Posted in Code Better, PHP Tutorials | Last Updated

    PHP: Check for the Existence of A Key Value Pair in a Multi-dimensional Array In PHP 5.5.0 and above you no longer need a custom function to search through a multi-dimensional array. Combining the built-in PHP functions array_search and array_column will extract the index of the inner array. Here’s the usage using meta variables: And […]