How can I remove element that starts with TOR example key [27].

```
Array
(
    [1] => memory_target
    [2] => vif_2_rx
    [3] => vif_2_tx
    [4] => memory
    [5] => vbd_xvda_read
    [6] => vbd_xvda_write
    [7] => vbd_xvdd_read
    [8] => vbd_xvdd_write
    [9] => vif_1_rx
    [10] => vif_1_tx
    [11] => vif_0_rx
    [12] => vif_0_tx
    [13] => cpu0
    [27] =>  TOR-SRV65
)

```

This is what I have tried so far. 

```
if(($key = array_search($del_val, $messages)) !== false) {
    unset($messages[$key]);
}

```

But haven't been able to get it to work!