PHP Classes

Great Class!

Recommend this page to a friend!

      Hierarchy  >  All threads  >  Great Class!  >  (Un) Subscribe thread alerts  
Subject:Great Class!
Summary:This one works!!! Thanks!
Messages:1
Author:aldwin
Date:2013-10-11 05:39:19
 

  1. Great Class!   Reply   Report abuse  
Picture of aldwin aldwin - 2013-10-11 05:39:20
Thanks for this working class Rubens! Just what I needed! A simple class to input a function and get an html list. I've search StackOverflow and most of the code there still has some tweaking to do. Yours did the job as is.


I modified the line:

if (is_array($sublist))
$return .= self::print_list_recursion($sublist);

to

if (is_array($sublist)) {
$return .= self::print_list_recursion($sublist);
}
else {
$return .= '=> '.$sublist;
}

to input the values for non-array types.