Commit inicial

This commit is contained in:
2024-08-02 12:02:25 -06:00
commit ff7d678844
267 changed files with 101936 additions and 0 deletions

10
include/func_string.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
namespace utils;
function simpify_string(string $string): string
{
$string = mb_strtolower($string);
$string_without_accents = str_replace(array('á', 'é', 'í', 'ó', 'ú', 'ñ'), array('a', 'e', 'i', 'o', 'u', 'n'), $string);
$string_without_spaces = str_replace(' ', '', $string_without_accents);
return $string_without_spaces;
}