Languages

Fsharp
ActionScript
xBase
Clean
GPSS
PureBasic
Sieve
Erlang
JOVIAL
Mercury
Linda
DataFlex
PostScript
FoxPro2
VFP
Cobol
Prolog
Jython
Awk
VisualBasic
JavaScript
Matlab
ASP
Haskell
Csharp
D
Smalltalk
Nemerle
Pixilang
Java
SQL
Python
ObjectPascal
Ruby
Perl
Pascal
Assembler
PHP
C
Functions  Add function  Users  Registration  Enter   About  ASCII Table  Our helpers

strspn in PHP

(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.

Revisiting Chicxulub

An artist's rendering of the moment of impact at the end of the Cretaceous.

For decades, scientists have accumulated ever-larger datasets that suggest an enormous space rock crashed into the ocean off the Yucatan Peninsula more than 65 million years ago, resulting in the Cretaceous-Paleogene (K-Pg) extinction.

Recent research, supported in part by the National Science Foundation (NSF), suggested that the impact could have occurred 300,000 years prior to the K-Pg extinction, and that another cause--perhaps a second impact, or the long-lasting volcanic activity ...

More at http://www.nsf.gov/news/news_summ.jsp?cntn_id=116480&WT.mc_id=USNSF_51&WT.mc_ev=click


This is an NSF News item.

PycckaR
BepcuR


Articles
Articles


Library
Library


Downloads
Downloads

Google Chrome Golf 6
 © Internet, books, teachers and Rudevich Alexander brains.