You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
-
no error just still getting it in the wrong format when I test. I think because I am changing it to a javascript variable but I just want to keep it as a json arrayVickie– Vickie2015年03月26日 14:24:40 +00:00Commented Mar 26, 2015 at 14:24
-
<?php $data = Array (); $data [] = Array ("Name", "Value"); $data [] = Array ("PHP", 78); $data [] = Array ("JAVA", 1000); $data [] = Array ("HTML", 129); $table = json_encode($data); echo $table ; ?>Vickie– Vickie2015年03月26日 14:30:03 +00:00Commented Mar 26, 2015 at 14:30
-
sorry about how it looks, new to stackoverflow, don't really know how to use itVickie– Vickie2015年03月26日 14:30:35 +00:00Commented Mar 26, 2015 at 14:30
default