1<?php
2
3if (!extension_loaded('mbstring')) {
4    echo "Skipping mbstring dictionary generation\n";
5    return;
6}
7
8$dict = "";
9foreach (mb_list_encodings() as $encoding) {
10    $dict .= "\"" . $encoding . ",\"\n";
11}
12file_put_contents(__DIR__ . "/dict/mbstring", $dict);
13