Last active
April 9, 2018 05:15
-
-
Save boywijnmaalen/fe2af62465c3b1d3c26d to your computer and use it in GitHub Desktop.
PHP - check if an array is multi dimensional or not
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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