First commit

This commit is contained in:
pezcurrel 2024-10-29 13:51:20 +01:00
parent 56359510d2
commit a7ac91eee6
2 changed files with 25 additions and 0 deletions

14
lib/ckmkeys.php Normal file
View file

@ -0,0 +1,14 @@
<?php
function ckmkeys($keys,$arr) {
$b=true;
foreach ($keys as $key) {
if (!array_key_exists($key,$arr)) {
$b=false;
break;
}
}
return $b;
}
?>

11
lib/mb_ucfirst.php Normal file
View file

@ -0,0 +1,11 @@
<?php
function mb_ucfirst($str) {
if (preg_match('#^.#u',$str,$matches)===1) {
$first=mb_strtoupper($matches[0],'UTF-8');
$str=preg_replace('#^.#u',$first,$str);
}
return $str;
}
?>