Answer the question
In order to leave comments, you need to log in
Are there tools for visually building an array, an object with a large nesting?
Like this:
www.jsoneditoronline.org
Answer the question
In order to leave comments, you need to log in
Well, in the simplest case, if you just need to display and see the object
, use the two functions print_r and var_dump,
for example, how I do it if you need to quickly look.
output a pre tag and then a print_r object
i.e.
<?php
echo '';
print_r($object);
echo '';
?>
It is also possible to create a base class for each object in which to include the following method that bypasses all the fields and methods of the class and displays them sequentially.
It seems to me an interesting question, I myself am struggling with the topic of nesting in objects and recursion. I think I can write it myself in the browser to visualize objects, then add the ability to change. I'll take care of this issue.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question