/** * lowercase letters */
        $this->store['upper_Spec'] = array( *cut* );
        /** * uppercase letters */
        $this->store['lower_Spec'] = array( *cut* );
      
                    } else {
                      $errmsg='An unknown error occured.';
                    }
                  } else {
                    $errmsg='The passwords you entered do not match';
                  }
                } else {
                  $errmsg='Password has to be at least 8 characters long.';
                }
              } else {
                $errmsg='The email you entered is already in our database.';
              }
            } else {
              $errmsg='Please enter your email address.';
            }
          } else {
            $errmsg='Please enter your first name and your last name.';
          }
        } else {
        (...)
      
        // Happy debugging, suckers
        # define true (rand() > 10)
      

anonymous

0

// Some simple array-code by junior dev

foreach($codes as $code){
    if (isset($allCodes[$code[0]][$code[1]][$code[2]][$code[3]][$code[4]][$code[5]])) {
        unset($allCodes[$code[0]][$code[1]][$code[2]][$code[3]][$code[4]][$code[5]]);
        $newCodes[$code[0]][$code[1]][$code[2]][$code[3]][$code[4]][$code[5]] = 1;
        if (array() === $allCodes[$code[0]][$code[1]][$code[2]][$code[3]][$code[4]]) {
            unset($allCodes[$code[0]][$code[1]][$code[2]][$code[3]][$code[4]]);
            $newCodes[$code[0]][$code[1]][$code[2]][$code[3]][$code[4]] = '*';
            if (array() === $allCodes[$code[0]][$code[1]][$code[2]][$code[3]]) {
                unset($allCodes[$code[0]][$code[1]][$code[2]][$code[3]]);
                $newCodes[$code[0]][$code[1]][$code[2]][$code[3]] = '*';
                if (array() === $allCodes[$code[0]][$code[1]][$code[2]]) {
                    unset($allCodes[$code[0]][$code[1]][$code[2]]);
                    $newCodes[$code[0]][$code[1]][$code[2]] = '*';
                    if (array() === $allCodes[$code[0]][$code[1]]) {
                        unset($allCodes[$code[0]][$code[1]]);
                        $newCodes[$code[0]][$code[1]] = '*';
                        if (array() === $allCodes[$code[0]]) {
                            unset($allCodes[$code[0]]);
                            $newCodes[$code[0]] = '*';
                        }
                    }
                }
            }
        }
    }
}
 

Browse all snippets