Php str_ends_with verifica se uma string termina com uma determinada substring

<?php
if (str_ends_with('abc', '')) {
    echo "All strings end with the empty string";
}
?>
SAMER SAEID