```
$array = [ 0, 5, 7 ];

```

For this array, I want to `unset` without it assigning a value.

When I `unset($array[5])` it will return

```
{
    "0" => 0,
    "1" => 5,
    "2" => 7
}

```

But my actual goal is to make it return like

`[ 0, 7 ]`

That way when I use `json_encode` it will just show up as

```
[ 
    0,
    7
]

```

Is this possible at all? I googled and everyone just mentions indexing, but I am looking at just removing this number from the array. Not have it reindex or change the formatting of it to have a value.