$ch = curl_init('http://www.somesite.com/project/User?id=1&&user=MYUSER');
$result = curl_exec($ch);
print $result;
curl_close($ch);
$json=json_decode($result,true);
print "-->".$json;
print "------>".$json['PASSWORD'];`
The output I get is:
-->1
------>
What is the "1" that is appended towards the end? How do i solve it?
print_rinstead ofprintfor your$jsonarray