Number Patterns in PHP