mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-06-22 22:39:19 +00:00
ça'
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user