Php str_ends_with verificaciones si una cadena termina con una subcadena dada
<?php
if (str_ends_with('abc', '')) {
echo "All strings end with the empty string";
}
?>
SAMER SAEID