user57864: I use json_decode to vardump a return which yields
array(3) { ["jsonrpc"]=> string(3) "2.0" ["result"]=> array(13) { ["status"]=> string(7) "Pending" ["amount (BTC)"]=> string(10) "0.05130899" ["index_url"]=> . . . . [more fields  here] . . .  ["address"]=> string(34) "1GHHojoC4Ai1SPMN3YoNzemLNaaj2XFHKc" 
I am trying to fill a variable with the text from the "address" field and I tried 
$result =  json_decode($response, true);
   $address = $result->address;
but a varbump of $addrwss is NULL
any other variant like $result->"address" or $result->["address"] is improper syntax
Can someone tell me how to get at the text of the address field of a JSON PRC 2.0 response to put it in a variable in PHP

user26873: To get the address you would do:    
$result = json_decode($response, true);
$address = $result["result"]["address"];


user84018: As you have convert response to array using json_decode so you can access by array element inside result.
You can access by echo $result["result"]["address"];

57864: <p>I use json_decode to vardump a return which yields</p>

<p>array(3) { ["jsonrpc"]=> string(3) "2.0" ["result"]=> array(13) { ["status"]=> string(7) "Pending" ["amount (BTC)"]=> string(10) "0.05130899" ["index_url"]=> . . . . [more fields  here] . . .  ["address"]=> string(34) "1GHHojoC4Ai1SPMN3YoNzemLNaaj2XFHKc" </p>

<p>I am trying to fill a variable with the text from the "address" field and I tried </p>

<p>$result =  json_decode($response, true);
   $address = $result->address;</p>

<p>but a varbump of $addrwss is NULL</p>

<p>any other variant like $result->"address" or $result->["address"] is improper syntax</p>

<p>Can someone tell me how to get at the text of the address field of a JSON PRC 2.0 response to put it in a variable in PHP</p>
 26873: <p>To get the address you would do:    </p>

<pre><code>$result = json_decode($response, true);
$address = $result["result"]["address"];
</code></pre>
 84018: <p>As you have convert response to array using json_decode so you can access by array element inside result.
You can access by echo $result["result"]["address"];</p>
