开发者

Is there a php wrapper for Google Visualisation API?

i'd like to make a php wrapper for Google Visualisation API .. I mean, a simple way to transform a php array to a nice piece of javascript to make a graph by Google API ..

But of course i'm almost sure somebody has already created such a thing .. but i can't find ..

does it exist ? open source pref开发者_开发知识库erred

Thanks


Yes.

Check here

http://googlecode.blogspot.com/2008/08/google-visualization-api-now-in-php.html


did u read json_encode

<?php
$arr = array ('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>5);

echo json_encode($arr);
?>
//output array => {"a":1,"b":2,"c":3,"d":4,"e":5}

if you want output as an object then use

json_encode($b, JSON_FORCE_OBJECT);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜