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 serialize but i want to make the files readable as readability is quite hard with serialized arrays.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…