This commit is contained in:
2019-01-14 16:50:21 +01:00
parent 22fc7cfe22
commit 94fa0c2870
7 changed files with 108 additions and 174 deletions

View File

@ -1 +1,11 @@
/* Fichier de fontions que nous utiliserons a travers les différents fichiers */
<?php
//function pour voir la fin d'un texte
function endsWith($haystack, $needle) {
$length = strlen($needle);
if ($length == 0) {
return true;
}
return (substr($haystack, -$length) === $needle);
}