Hello FunkyMonk, Thanks for your reply. I understand "delete" function simply removes the value and does not change the index. However, what I want is to remove the value along with its index (like what splice function does). Thus imho, I guess delete will not help here? Any other solution? Thanks, delete @array[@arrayindex];