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

substr_compare in PHP

(PHP 5)

substr_compare — Binary safe optionally case insensitive comparison of 2 strings from an offset, up to length characters
Description
int substr_compare ( string $main_str, string $str, int $offset [, int $length [, bool $case_insensitivity]] )

substr_compare() compares main_str from position offset with str up to length characters.

Returns < 0 if main_str from position offset is less than str, > 0 if it is greater than str, and 0 if they are equal. If length is equal or greater than length of main_str and length is set, substr_compare() prints warning and returns FALSE.

If case_insensitivity is TRUE, comparison is case insensitive.

<?php
echo substr_compare("abcde", "bc", 1, 2); // 0
echo substr_compare("abcde", "bcg", 1, 2); // 0
echo substr_compare("abcde", "BC", 1, 2, true); // 0
echo substr_compare("abcde", "bc", 1, 3); // 1
echo substr_compare("abcde", "cd", 1, 2); // -1
echo substr_compare("abcde", "abc", 5, 1); // warning
?>
Doing for this function is string
Add by Pancho
You can edit it here
abcarticle.ru (blockart[dog]mail[dot]ru)
6DtucX <a href="http://rithtixpbefh.com/">rithtixpbefh</a>, [url=http://tufamwrlwfnn.com/]tufamwrlwfnn[/url], [link=http://avevjkeptxzg.com/]avevjkeptxzg[/link], http://itjppotwqhty.com/
abcarticle.ru (blockart[dog]mail[dot]ru)
2N8wTg <a href="http://wgdbogxgwpqy.com/">wgdbogxgwpqy</a>, [url=http://poxuokylfbcv.com/]poxuokylfbcv[/url], [link=http://ncgodnfencww.com/]ncgodnfencww[/link], http://xhxqukoytkwm.com/
Adding comments is available only for registered users.

More than One: Long-Reigning Microbe Controlling Ocean Nitrogen Shares the Throne

Photo showing surface accumulation of the nitrogen-fixing microbe Trichodesmium in Pacific Ocean.

Marine scientists long believed that a microbe called Trichodesmium, a member of a group called the cyanobacteria, reigned over the ocean's nitrogen budget.

New research results reported on-line today in a paper in Science Express show that Trichodesmium may have to share its nitrogen-fixing throne: two others of its kind, small spherical species of nitrogen-fixing cyanobacteria called UCYN-A and Crocosphaera watsonii, are also abundant in ...

More at http://www.nsf.gov/news/news_summ.jsp?cntn_id=116389&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.