php save array key value and remove code example Example: php unset array key unset($dataArray['key']);