How to get depth of array in PHP?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-03-13T13:54:31Z Indexed on 2010/03/13 13:55 UTC
Read the original article Hit count: 401

Filed under:
|
|
  'test2' => 
    array
      'name' => string 'ntuser.dat.LOG' (length=14)
      'type' => string 'application/octet-stream' (length=24)
      'tmp_name' => string 'D:\wamp\tmp\php224.tmp' (length=22)
      'error' => int 0
      'size' => int 0

The above should be depth of 2.

© Stack Overflow or respective owner

Related posts about php

Related posts about array