Source Code:
(back to article)
<?php $str1 = "Hello World"; $str2 = "oe"; $result = strcspn($str1, $str2); echo "The length of the initial segment of '$str1' that does not contain any of the characters in '$str2' is $result.";
Result:
Report an issue