1

I'm new to php. Can someone please guide me. I developing an app for blackberry. I want to send a boolean parameter from my php to java as a response to my java class's request. And then get that parameter at java side. How can I do that? Please help. Thanks in advance.

nikita sharma
  • 169
  • 1
  • 8

1 Answers1

1

Simply print your response as json.

$myvalue = array();
$myvalue['status'] = 0;

$jsonEncodedvalue = json_encode($myvalue);

print_r($jsonEncodedvalue);
Dino Babu
  • 5,814
  • 3
  • 24
  • 33