how do you write a function like print_r() that recursively prints objects?
- by significance
i want to write a function that prints multi-dimensional objects which are text (or integers, etc.) into <span></span> tags and arrays into unordered lists.
how do you make the function work recursively so that it prints everything regardless of what level it's at in the object?
thanks!