generated code using php

Possible Duplicate:
How can I beautify JSON programmatically?

I have build a code generator that gives me a .js file as output with the javascript in it. The code works fine but the only problem is for the indentation.

I have written my code generator in php. Can anyone suggest me a library or something else that will help me to auto indent my generated code in php.


Try it: They have extensions, library, etc.

http://jsbeautifier.org/

链接地址: http://www.djcxy.com/p/48192.html

上一篇: 如何查看json对象的格式?

下一篇: 生成的代码使用PHP