Question: I have a foreach loop that is supposed to loop through JSON and return the appropriate ID of each video listed in JSON using the Youtube api.
Here is my code:

```
class Videos {
    private $mVideoUrl;

    function setVideoTitle($videoUrl){
        $this->mVideoUrl= $videoUrl;
    }

    function getVideoTitle(){
        return $this->mVideoUrl;
    }
} 

$jsonFile = file_get_contents($url);
$jfo = json_decode($jsonFile);
$items = $jfo->items;
$vidArray = array();

foreach ($items as $item){
    if(!empty($item->id->videoId)){
        $Videos = new Videos;
        $Videos->setVideoUrl($item->id->videoId);
        $id = $Videos->getVideoUrl();
        array_push($vidArray, $id);
    }
    echo $vidArray[0];
}

```

Problem is, the array push is working correctly, but it is only adding the 1st ID in the list only for each loop iteration when i echo it. When I echo the $id variable, it prints all IDs just fine.

Ultimately i want to be able to create an object for each video, storing it's ID and other information.

I feel like this is a simple fix but i can't figure it out for the life of me.
I would appreciate any help! 
Also if i am going about this all wrong, advice is appreciated as well!

Thanks!

Answer: 
You can embed a font quick and easy by using this code:

```
@font-face {
  font-family: 'Name';
  src: url('Font.ext');
  font-weight: 400;
  font-style: normal;
}

```

Where Font.ext should be replaced with your font file and its extention (file type) e.g. 

> 
> src: url('Ubuntu-L.ttf');
> 
> 
> 

And the following ***font-weight*** and ***font-style*** should be referencing the specific font choice.
The `url(...)` path is relative to the stylesheet.

Therefore, because your stylesheet is in the `CSS` folder you don't need to include that in the url:

```
@font-face{
  font-family: "UbuntuLight";
  src: url("Ubuntu-L.ttf");
}

```