Advertisement
rubo77

Untitled

Sep 30th, 2013
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. $a=array (
  2.   'v' =>
  3.   array (
  4.     0 =>
  5.     array (
  6.       0 => 'v0_0',
  7.       1 => 'v0_1',
  8.       2 => 'v0_2',
  9.     ),
  10.     1 =>
  11.     array (
  12.       0 => 'v1_0',
  13.       1 => 'v1_1',
  14.       2 => 'v1_2',
  15.     ),
  16.     2 =>
  17.     array (
  18.       0 => 'v2_0',
  19.       1 => 'v2_1',
  20.       2 => 'v2_2',
  21.     ),
  22.   ),
  23. );
  24.  
  25. count($a,1); # <-- 13
  26. although the desired output is 9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement