Created
October 20, 2017 22:01
-
-
Save phpfiddle/bb263111517b38829f757d73e6d483f8 to your computer and use it in GitHub Desktop.
[ Posted by José ] La función count de php y su segundo parametro COUNT_RECURSIVE
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 | |
$lenguajes = array( | |
'servidor' => array('php', 'nodejs'), | |
'client' => array('javascript', 'html') | |
); | |
echo "count simple " . count($lenguajes); | |
echo "count with recursive ". count($lenguajes, COUNT_RECURSIVE); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment