Tilou
Déplier la navigation
PHP
Informations codes
Contrôle si un string $str, finit par $ending
Publié par
tilouco
le
22 janvier 2025
22 janvier 2025
function
solution
(
$
str
,
$
ending
)
{
return
str_ends_with
(
$
str
,
$
ending
)
;
}
Catégories :
PHP
Articles similaires
Informations codes
Comparatif moyen if, else if
ou bien
Informations codes
Concaténation ajout du texte derrière un autre texte
PHP
Supprimer les espaces dans une chaine de caractère