Error thrown

Call to undefined function str_ends_with()