PHP RFC: Multibyte for trim function mb_trim, mb_ltrim and mb_rtrim

chris

chris@chrisEmoji

PHP

PHP does not have a multibyte equivalent of the trim function. It is possible to get close enough behavior using preg_replace(“/^\s+|\s+$/u”, '', $string), however adding a pre-built function to do this will improve the readability and clarity of PHP code