\x0B"); \xC2\xA0 is non-breaking space (alt+space in mac os x)" />
Pear Code
How to trim non-breaking space in PHP

Use this snippet:

$trim = trim($text, " \xC2\xA0\n\t\r\0\x0B");

\xC2\xA0 is non-breaking space (alt+space in mac os x)

  1. pearcode opublikował(a) to