Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
cpjamloki
Level 7

print complete array as it is

Hi guys,
is there any function in Roku like print_r in php, for printing complete arrray.


Thanks
0 Kudos
2 Replies
cpjamloki
Level 7

Re: print complete array as it is

if anybody have any idea please share.
0 Kudos
Highlighted
EnTerr
Level 8

Re: print complete array as it is

If print is given an array, it does already print it "complete", one item per line.

I suspect you are asking about way to recursively dump a structure, it's trivial to write such function - but take a look first, won't formatJSON() do out-of-the-box what you need?
0 Kudos