I have a function that return array values as JSON object:
function keywords(){
    $keywords = array ('29254' => array('JOIN', 'PIN', 'WITHDRWAL', 'BALANCE'),
                        '24254' => array('UPNIN', 'PEIN', 'BALANCE'),
                      );
    return json_encode($keywords);
 }
print_r(keywords());
The result:
{"29754":["JOIN","PIN","WITHDRWAL","BALANCE"],"24254":["UPNIN","PEIN","BALANCE"]}
I want to get the array with the key 29254 only.
I tried this:
$data = json_decode(keywords());
print_r($data)[29254];
...but I still get all of them.





