Replace string by array pattern
replaceArr('str', ['s','r'], ''); // treplaceArr('str', ['s','r'], ['a s', 'ring']); // a string
Replace string by array pattern
Example