Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save boywijnmaalen/fe2af62465c3b1d3c26d to your computer and use it in GitHub Desktop.
Save boywijnmaalen/fe2af62465c3b1d3c26d to your computer and use it in GitHub Desktop.
PHP - check if an array is multi dimensional or not
<?php
return (count($array) !== count($array, COUNT_RECURSIVE)) ? true : false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment