Php preg_replace with array in elements
问题 I am trying to do the emoji system and if the element in the array passes through the page, turn the value on the opposite side. Example: $emoticons = array( ':)' => '<img src="assets/smiles/smilesblank.png" alt="smile" class="img-responsive" />', ':-)' => '<img src="assets/smiles/smilesblank.png" alt="smile" class="icon_smile" />', ':D' => '<img src="assets/smiles/smilesblank.png" alt="smile" class="icon_laugh" />', ':d' => '<img src="assets/smiles/smilesblank.png" alt="laugh" class="icon