array after unset index array key set php code example Example: php unset array key unset($dataArray['key']);