CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • New function to calc the number of levels in a multi-dimensional array
Pages: [1]

Author Topic: New function to calc the number of levels in a multi-dimensional array  (Read 522 times)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
New function to calc the number of levels in a multi-dimensional array
July 21, 2011, 12:19:52 am
Hi all,
I have just committed a new function to CRM/Utils/Array.php which returns the number of levels in a multidimensional array. The function is CRM_Utils_Array::getLevelsArray( $array ).

Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • New function to calc the number of levels in a multi-dimensional array

This forum was archived on 2017-11-26.