Home >> PHP >> strcspn() function in PHP

strcspn() function in PHP

The strcspn() function used for number of characters(including blankspace) that occur between the start of the string and the first occurrence of any character listed in the second string.




echo strcspn("Hello dear","d");



Post Your Comment

Next Questions
strip_tags() function
stripslashes() function
stripos() function
stristr() function
strlen() function
strnatcasecmp() function
strnatcmp() function
strncasecmp() function
strncmp() function
strpbrk() function
strpos() function
strrchr() function
strrev() function
strripos() function
strrpos() function
strspn() function
strstr() function
strtok() function
strtolower() function
strtoupper() function
strtr() function
substr() function
substr_compare() function
substr_count() function
substr_replace() function

Copyright ©2022 coderraj.com. All Rights Reserved.