E
E
elailasou2015-04-02 14:06:59
PHP
elailasou, 2015-04-02 14:06:59

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

4 answer(s)
D
Dmitry, 2015-04-02
@JuSay

I can't even think why

M
Mike, 2015-04-02
@Mike77

so use that link and then json_encode ?

A
acspro, 2015-04-02
@acspro

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.

S
Sergey Ganin, 2015-04-03
@dohera

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 question

Ask a Question

731 491 924 answers to any question