For example, I setup an array,

I need to raise an event or call a function automatically when any element of an array is changed. How can I do this?