[Php-it] Incubo in UTF8, parte 666

Matteo Beccati php at beccati.com
Mon Jan 22 12:08:36 CET 2007


Luca 'Ziabice' Gambetta ha scritto:
> $s = "però,      a te!";
> $s = preg_replace('/\s+/u', ' ',$s);
> $s = preg_replace('/[^\s\w]+/u', '',$s);

Domanda scema... sei sicuro che quella ò sia effetivamente un carattere
multibyte UTF-8?


Ciao ciao
--
Matteo Beccati
http://phpadsnew.com
http://phppgads.com


More information about the Php-it mailing list