Question: ```
<android.support.v4.widget.SwipeRefreshLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/swipe"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_above="@+id/footer"
    android:layout_alignParentEnd="true"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:ignore="InconsistentLayout">

    <ListView
        android:id="@+id/contacts_list"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:layout_above="@+id/footer"
        android:layout_alignParentTop="true">

    </ListView>

</android.support.v4.widget.SwipeRefreshLayout>

```

Above code list view is having some space around the corners. i need to set my list view to fit the screen.could any one give solution

Answer: 
Variable `txs` is an array of objects.

Your last line should be written as:

```
echo "Latest hash: " . ($data3->txs[0]->hash) . "<br>";

```

It outputs:

```
Latest hash: fd37b1ddfbe08d485a62bb3aeb7c9088e7dd3a352ac9e9e8eb6f170a9b4210cd

```
This code worked :)

```
$json_url3 = "https://blockchain.info/da/unconfirmed-transactions?format=json";
$json3 = file_get_contents($json_url3);
$json3=str_replace('},

]',"}

]",$json3);
$data3 = json_decode($json3);
echo "Latest hash: " . ($data3->txs[0]->hash) . "<br>";

```

txs[0] 

I assume the issue was that there is more than 1(one) element in the array