Create patterns using PHP Loops