Print and array to a file..
Posted
by atif089
on Stack Overflow
See other posts from Stack Overflow
or by atif089
Published on 2010-04-13T10:34:35Z
Indexed on
2010/04/13
10:42 UTC
Read the original article
Hit count: 394
Hi,
I would like to print an array to a file.
I would like the file to look exactly similar like how a code like this looks.
print_r ($abc);
assuming $abc is an array.
Is there any one lines solution for this rather than regular for each look.
P.S - I currently use serialie but i want to make the files readable as readability is quite hard with serialized arrays.
© Stack Overflow or respective owner