This is a strange problem. Here is my code
String reply = listen.executeUrl("http://localhost:8080/JavaBridge/reply.php);
executeUrl returns as a String object everything that is returned by the reply.php file. Now the problem. In reply.php, I return a PHP array, and the answer is a string.
When i do
System.out.println("Reply = "+reply);
I get
Reply = array(2) { [0]=> string(14) "Dushyant Arora" [1]=> string(19 ) "@dushyantarora13 hi"}
But the answer is still a string. How to convert it to a String array or an array.
Bruce source share