PHP Array To JSON String


/ Published in: JavaScript
Save to your folder(s)

SEE http://json.org/ for PHP JSON Libraries.

grunt knuckle drag brute force ugly escapes for quotes make a php array a json string

Produces trailing commas which some Javascript Librarys can't deal with.*

_*NOOB NOTE [a comma is added at the end of each array key/value set]_

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.