PHP » GoLang |
login |
register |
about
|
strspn(PHP 4, PHP 5, PHP 7) strspn — Finds the length of the initial segment of a string consisting entirely of characters contained within a given mask Description
int strspn
( string
$subject
, string $mask
[, int $start
[, int $length
]] )
Finds the length of the initial segment of
If The line of code:
<?php subject that consists only of characters
contained within "1234567890".
Parameters
Return Values
Returns the length of the initial segment of
Examples
Example #1 strspn() example
<?php The above example will output: int(0) int(2) int(1) Notes
|
more
Recently updated
more
Most requested
more
Last requests
|