PHP

Frequent PHP problems and solutions

5

I started off with frequent CakePHP problems last month. This month I add some common PHP problems. Strip additional white spaces With UTF8 the "normal" preg_replace doesn’t really work anymore. For some cases we could use the following trick: $str…