Using PHP I demonstrate one way to produce an array of duplicated letters that are contained in a string. For example, if the input string is 'mississippi', the output array will be ['i', 's', 'p' ]