<?php print "No keywords return: "; var_dump(Locale::getKeywords('en')); print "\nNo locale specified use the default, which doesn't usually have keywords. Returns: "; var_dump(Locale::getKeywords('')); print "\nBut it could, so worth mentioning the argument default. Returns: "; Locale::setDefault('sl-Latn-IT-nedis@currency=EUR;collation=PHONEBOOK'); var_dump(Locale::getKeywords('')); print "\nThe INTL_MAX_LOCALE_LEN is: " . INTL_MAX_LOCALE_LEN; $long_locale = 'sl-Latn-IT-nedis@currency=EUR;collation=PHONEBOOK;calendar=islamic-umalqura;numbers=hansfin;foo=lorumipsumsedutperspiciatisundeomnisistenatuserrorsitlorumip'; print "\nSo a string of " . strlen($long_locale) . " returns: "; var_dump(Locale::getKeywords($long_locale)); $longer_locale = 'sl-Latn-IT-nedis@currency=EUR;collation=PHONEBOOK;calendar=islamic-umalqura;numbers=hansfin;foo=lorumipsumsedutperspiciatisundeomnisistenatuserrorsitlorumips'; print "But a string of " . strlen($longer_locale) . " returns: "; var_dump(Locale::getKeywords($longer_locale)); $keyword = 'lorumipsumsedutperspiciatisundeomnisistenatuserrorsitlorumipslorumipsumsedutperspiciatisundeomnisistenatuserrorsit'; print "\nJust one keyword value with a max length longer than 100? (" . strlen($keyword) . ") Returns: "; $keyword_locale = 'sl-Latn-IT-nedis@cfoo=' . $keyword; var_dump(Locale::getKeywords($keyword_locale)); print "\nJust one keyword key with a max length longer than 100? (" . strlen($keyword) . ") Returns: "; $keyword_locale = 'sl-Latn-IT-nedis@' . $keyword . '=foo'; var_dump(Locale::getKeywords($keyword_locale));
You have javascript disabled. You will not be able to edit any code.