staff_text=['31','32']
staffing_title = ['14','28','14','20']
I have two array like above.and i want output like
staffing_title = ['31','28','32','20']
So basically whenever 14 comes in staffing_title array it replace by staff_text values.
ex if first 14 comes replace by 31,When second 14 comes replace by 32 and so on