我之前从未使用过JSON,而且我正在尝试使用以下javascript:http: //jqueryselectcombo.googlecode.com/files/jquery.selectCombo1.2.6.js
它需要以下格式的JSON输出:
[{oV: 'myfirstvalue', oT: 'myfirsttext'},
{oV: 'mysecondvalue', oT: 'mysecondtext'}]
Run Code Online (Sandbox Code Playgroud)
你能否引导我一个关于如何使用PHP生成JSON输出的例子?