Toolbox::strtoupper PHP Méthode

strtoupper() static public méthode

strtoupper function for utf8 string
static public strtoupper ( $str ) : upper
$str string
Résultat upper case string
    static function strtoupper($str)
    {
        return mb_strtoupper($str, "UTF-8");
    }

Usage Example

Exemple #1
0
function checkOne($name, $tab = "")
{
    global $cmd;
    if (empty($tab)) {
        $tab = Toolbox::strtoupper("LANG{$name}");
    }
    $old = getcwd();
    if (is_dir($name . "/trunk/locales") && is_file($name . "/trunk/locales/fr_FR.php")) {
        echo "+ ----- {$name} -----\n";
        $dir = opendir($name . "/trunk/locales");
        while (($file = readdir($dir)) !== false) {
            if (strpos($file, ".php") && $file != "fr_FR.php") {
                passthru("php {$cmd} {$name}/trunk/locales/fr_FR.php {$name}/trunk/locales/{$file} {$tab}\n");
            }
        }
        closedir($dir);
    } else {
        echo "no {$name}/trunk/locales/fr_FR.php\n";
    }
    chdir($old);
}
All Usage Examples Of Toolbox::strtoupper