I am new to PHP, I am trying to learn it. Actually, I am not getting what is this format and how to get the result from it. below is my code after var_dump:
$data = some array();
var_dump($data);
/*
object(stdClass)#58 (3) {
["jsonrpc"]=> string(3) "2.0"
["id"]=> int(1)
["result"]=> string(42) "Success"
}
*/
Now I want the 'result' parameter only as a string. I am trying to do this way:
$reult = $data['result'];
but it is giving Illegal string offset 'result'
error.