Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 php 新手。有人可以指导我。我为黑莓开发了一个应用程序。我想将一个布尔参数从我的 php 发送到 java,作为对我的 java 类请求的响应。然后在java端获取该参数。我怎样才能做到这一点?请帮忙。提前致谢。
只需将您的响应打印为 json。
$myvalue = array(); $myvalue['status'] = 0; $jsonEncodedvalue = json_encode($myvalue); print_r($jsonEncodedvalue);