mb_str_starts_with

mb_str_starts_with($haystack, $needle)
Identifica se a string passada inicia com a sentença indicada.
Parameters:
  • ‹ string › $haystack
    String original.
  • ‹ string › $needle
    Caracteres iniciais.
Returns:

‹ bool ›
Retornará true se $haystack é uma string que inicia com $needle.