Current Location: Home> Function Categories> strcspn

strcspn

Get the length of the starting substring that does not match the mask
Name:strcspn
Category:String
Programming Language:php
One-line Description:Returns the number of characters found in the string before any part of some specified characters is found.
Similar Functions
  • Get digital format information localeconv

    localeconv

    Getdigitalformatinfo
  • Return part of the string substr

    substr

    Returnpartofthestrin
  • Calculate the number of occurrences of substrings substr_count

    substr_count

    Calculatethenumberof
  • Find any one of a set of characters in a string - Return a substring that starts with the found character strpbrk

    strpbrk

    Findanyoneofasetofch
  • Use another string to fill a string to a length str_pad

    str_pad

    Useanotherstringtofi
  • Binary safe string comparison strcmp

    strcmp

    Binarysafestringcomp
  • Parses entered characters according to the specified format sscanf

    sscanf

    Parsesenteredcharact
  • Set the first character of the string to uppercase ucfirst

    ucfirst

    Setthefirstcharacter