<?php $array = [ "💩 happens", "I'm getting too old for this 💩", "shiitake", "Mondays are 💩, Tuesdays are 💩, and so on!", "Here is your Finnish itinerary", "Is this chocolate or 💩?" ]; var_export( preg_filter('/💩/u', 'poop', $array, 1, $count) ); echo "\n---\ncount: $count";
You have javascript disabled. You will not be able to edit any code.