This commit is contained in:
2023-08-08 17:04:21 +00:00
parent 31ecda89b2
commit ec382e989a
147 changed files with 18206 additions and 18063 deletions

View File

@@ -1,10 +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;
}
<?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;
}