1. PHP / Говнокод #7427

    +160

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    if(preg_match("/^(\d\d\d\d)-(\d\d)-(\d\d) (\d\d):(\d\d):(\d\d)$/", $dt, $m)) {
    } elseif(preg_match("/^(\d\d\d\d)-(\d\d)-(\d\d)$/", $dt, $m)) {
            $isH = false;
            $isM = false;
            $isS = false;
    }

    facepalm...

    Запостил: nergalic, 03 Августа 2011

    Комментарии (12) RSS

    Добавить комментарий