I have the following array in php:

```
$stats = array(
    "Item 1"    =>   20,
    "Item 2"    =>   30,
    "Item 3"    =>   66,
    "Item 4"    =>   1
);

```

I need to echo these values, so I try this:

```
<?
    foreach ($stats as $stat => $data) {
        echo '
            <div class="col-sm-6">
                <div class="widget">
                    <div class="widget-body p-t-lg">
                        <div class="clearfix m-b-md">
                            <h1 class="pull-left text-primary m-0 fw-500"><span class="counter" data-plugin="counterUp">'.$data.'</span></h1>
                            <div class="pull-right watermark"><i class="fa fa-2x fa-tv"></i></div>
                        </div>
                        <p class="m-b-0 text-muted">'.$stats[$stat].'</p>
                    </div>
                </div>
            </div>
        ';
    }
?>

```

But I have only the numerical values echoed.

Do you have the solution ?

Thanks.