Month: December 2005

Wine loop

while ( !empty($wine) ) { drink(); if ( drunk() ) { sleep(300); } } if…

Multi-level categories

Combining functions method: function dropdown_cats() { global $table_prefix; $main_cats = "SELECT cat_id, cat_name FROM ${table_prefix}categories…

“Regex Spellcheck” for Vietnamese

“Regex Spellcheck” (step 1) 😆 (ch|gh|kh|ngh|ng|nh|p|ph|th|tr|b|c|d|đ|g|h|gi|k|l|m|n|q|r|s|t|v|x)? ( ( [uo] )? ( ( [aàảãáạăằẳẵắặâầẩẫấậeèẻẽéẹêềểễếệiìỉĩíịoòỏõóọôồổỗốộơờởỡớợuùủũúụưừửữứựyỳỷỹýỵ] ) |…