|
(PHP 4, PHP 5)
strspn — Find length of initial segment matching mask
Description
int strspn ( string $str1, string $str2 [, int $start [, int $length]] )
Returns the length of the initial segment of str1 which consists entirely of characters in str2.
The line of code:
<?php
$var = strspn("42 is the answer, what is the question ...", "1234567890");
?>
will assign 2 to $var, because the string "42" will be the longest segment containing characters from "1234567890".
As of PHP 4.3.0, strspn() accepts two optional integer parameters that can be used to define the start position and the length of the string to examine.
<?php
echo strspn("foo", "o", 1, 2); // 2
?>
Note: This function is binary-safe.
Doing for this function is string
Add by Pancho
You can edit it here
|
abcarticle.ru (blockart[dog]mail[dot]ru)
e4o3D8 <a href="http://fuhvuwzzdpab.com/">fuhvuwzzdpab</a>, [url=http://zocjwxwjkuaj.com/]zocjwxwjkuaj[/url], [link=http://nkagofaqyqqv.com/]nkagofaqyqqv[/link], http://gcmuprvvaxyb.com/
|
abcarticle.ru (blockart[dog]mail[dot]ru)
e4o3D8 <a href="http://fuhvuwzzdpab.com/">fuhvuwzzdpab</a>, [url=http://zocjwxwjkuaj.com/]zocjwxwjkuaj[/url], [link=http://nkagofaqyqqv.com/]nkagofaqyqqv[/link], http://gcmuprvvaxyb.com/
|
abcarticle.ru (blockart[dog]mail[dot]ru)
67qUMc <a href="http://kwqtghdfrxsk.com/">kwqtghdfrxsk</a>, [url=http://vvvaamgqmxbg.com/]vvvaamgqmxbg[/url], [link=http://tuftcodnvhrv.com/]tuftcodnvhrv[/link], http://sfpthinzadqq.com/
|
|
Adding comments is available only for registered users.
|
Feasts at a Funeral
Whether the occasion is a wedding reception or another milestone in life, the feast is a time-honored ritual in which a large meal marks a significant occasion. We know that the Romans, Greeks and Vikings did it, and today it's still an active part of occasions such as birthdays, weddings and anniversaries. Now a University of Connecticut (UConn) anthropologist says there is new evidence that nearly 12,000 years ago, feasts were used to celebrate burial of the dead, bringing about the ...
More at http://www.nsf.gov/news/news_summ.jsp?cntn_id=117600&WT.mc_id=USNSF_51&WT.mc_ev=click
This is an NSF News item.
|
|
PycckaR BepcuR
Articles

Library

Downloads

|