<?php $s = "\xC2\xA0 \t\r\n\xC2\xA0éhé\xC2\xA0 \t\r\n\xC2\xA0"; var_dump(preg_replace('/^\s+|\s+$/u', '', $s)); var_dump(preg_replace('/^[\pZ\pC]+|[\pZ\pC]+$/u', '', $s));
You have javascript disabled. You will not be able to edit any code.