December 19 2009 by
Dave in
IT,
PHP |
I wrote a password generator today to help me whenever I need to create passwords for myself or a user. It’s pretty easy to use – just enter the password length and character set to use. Enjoy! http://tools.thewebsiteguy.com.au/password.php
December 15 2009 by
Dave in
IT,
PHP |
I wrote a pluraliser in PHP. final class Pluraliser { private static $alreadyPlural = array(“sheep”,”people”,”deer”,”moose”,”premises”,”series”,”fish”,”chassis”,”alms”,”amends”,”cattle”,”clothes”,”doldrums”,”ides”,”pants”,”pliers”,”scissors”,”shorts”,”smithereens”,”trousers”); public static function MakePlural($word) { $returnWord = “”; // If the word is in the list of words that are both singular and plural if (in_array(strtolower($word),self::$alreadyPlural)) $returnWord = $word; else { if [...]