Code: Select all
print_r(preg_split('/[\p{Z}\p{P}]+/u', 'Housewares, Home Decor and Accessories'));Code: Select all
Array
(
[0] => Housewares
[1] => Home
[2] => Decor
[3] => and
[4] => Accessories
)Code: Select all
print_r(preg_split('/[\p{Z}\p{P}]+/u', 'Housewares, Home Décor and Accessories'));Do I have to enable unicode support on the server maybe? Is PHP not actually handling Unicode? What am I missing?
Cheers,
Alex