Skip to content

Instantly share code, notes, and snippets.

@Daniel15
Created May 28, 2014 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Daniel15/5b2b660ad097d54b0e78 to your computer and use it in GitHub Desktop.
Save Daniel15/5b2b660ad097d54b0e78 to your computer and use it in GitHub Desktop.
<?php
if ($utf8) {
if (function_exists('mb_strtolower')) {
$strtolower = function ($string) { return mb_strtolower($string); }
} else {
require_once($sourcedir . '/Subs-Charset.php');
$strtolower = function ($string) { return utf8_strtolower($string); }
}
} else {
$strtolower = function ($string) { return strtolower($string); }
}
...
'strtolower' => $strtolower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment