PHP Programming quiz, level Advanced, question 9
| Question: | What does the strcspn function do? |
| Answer 1: | Returns the first position in a string that contains a character not in another string This was the CORRECT answer |
| Answer 2: | Changes all characters that are not acceptable in a string to another specified character, and returns the count of the number of changes |
| Answer 3: | Returns the position of the character that's lowest in the ASCII set in a given string |
| Answer 4: | Matches one string in another using glob style matching |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|