Solutions for PHPixie test tasks from http://phpixie.com/blog/test-tasks-for-php-interviews-that-developers-will-enjoy-solving/