Title: PHP – Page 2 – Alex Kirk

---

# Category: PHP

 * 
   ## 󠀁[preg_match, UTF-8 and whitespace](https://alex.kirk.at/2011/10/01/preg_match-utf-8-and-whitespace/)󠁿
   
 * October 1, 2011
 * Just a quick note, be careful when using the whitespace character \s in preg_match
   when operating with UTF-8 strings. Suppose you have a string containing a dagger
   symbol. When you try to strip all whitespace from the string like this, you will
   end up with an invalid UTF-8 character: $ php -r ‘echo preg_replace(“#\s#”, “”,…
 * [Code](https://alex.kirk.at/category/code/), [PHP](https://alex.kirk.at/category/code/php/)
 * 
   ## 󠀁[Debugging PHP on Mac OS X](https://alex.kirk.at/2008/12/26/debugging-php-on-mac-os-x/)󠁿
   
 * December 26, 2008
 * [factolex] I have been using Mac OS X as my primary operating system for a few
   years now, and only today I have found a very neat way to debug PHP code, like
   it is common for application code (i.e. stepping through code for debugging purposes).
   The solution is a combination of Xdebug and MacGDBp.…
 * [PHP](https://alex.kirk.at/category/code/php/)

 [Previous Page](https://alex.kirk.at/category/code/php/?output_format=md) [Next Page](https://alex.kirk.at/category/code/php/page/3/?output_format=md)