Skip to content

Instantly share code, notes, and snippets.

@phpfiddle
Created October 20, 2017 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpfiddle/bb263111517b38829f757d73e6d483f8 to your computer and use it in GitHub Desktop.
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
<?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