PDA

View Full Version : Sloppy Words Cleaner



michael_s
08-25-2016, 09:59 PM
-- v1.9 === New function Capitalize all first accent letters :

$specials_first = 'ä|ö|ü|ß|á|é|ó|ú|í|ñ|à|è|ò|ù|ì|â|ê|ô|û|î|ë|ï|å|ã|æ |ø|ç';

// captialize all first accent letters
$str = preg_replace_callback("/\B($specials_first)\b/", function ($m) {
return mb_convert_case($m[1], MB_CASE_UPPER, CHARSET);
},
$str
);


-- v1.9 === Small fix to capitalize letter after a quote :

$prefixes = ''';

instead of

$prefixes = '';


NB: Only the main file (account_word_cleaner.php) attached, just drag and drop it.


Works with all OsCommerce versions

More... (http://addons.oscommerce.com/info/5550)