$data = json_decode($response, true); print_r($data); $j=count($data["content"]); for ( $say=0 ; $say < $j ; $say++ ) { print $data["content"][$say]["name"]; }