Gerard Samuel wrote:
Im trying to explode a string into an array of words using ->
$title = preg_split('/[^\w\']/', $title, -1, PREG_SPLIT_NO_EMPTY );
It seems to work well with words like "this" and "don't" but it doens't work with words with accents to it like
"Guantánamo"
Could my regex be expanded to handle non-english type characters, or any workarounds to get a string into an array of words,
where the string contains non english characters??
Thanks
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php