<?php
$mysql = array( '01', '03', '04', '06', '11' );
for ($i = 1; $i <= $max; $i++) {
$current = str_pad($i, 2, '0', STR_PAD_LEFT
);
$final[] = $current;
} else {
$final[] = '00';
}
}
PD9waHAKJG15c3FsID0gYXJyYXkoICcwMScsICcwMycsICcwNCcsICcwNicsICcxMScgKTsKCiRtYXggPSBtYXgoMTIsIG1heCgkbXlzcWwpKTsKCiRmaW5hbCA9IGFycmF5KCk7Cgpmb3IgKCRpID0gMTsgJGkgPD0gJG1heDsgJGkrKykgewoKICAgICRjdXJyZW50ID0gc3RyX3BhZCgkaSwgMiwgJzAnLCBTVFJfUEFEX0xFRlQpOwogICAgCiAgICBpZiAoaW5fYXJyYXkoJGN1cnJlbnQsICRteXNxbCkpIHsKICAgICAgICAkZmluYWxbXSA9ICRjdXJyZW50OwogICAgfSBlbHNlIHsKICAgICAgICAkZmluYWxbXSA9ICcwMCc7CiAgICB9Cn0KCnByaW50X3IoJGZpbmFsKTs=