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.

Distant Star's Sound Waves Reveal Cycle Similar to Sun

Illustration of the CoRoT satellite measuring the acoustic fluctuations of a star.

In a bid to unlock long-standing mysteries of the sun, including the impacts on Earth of its 11-year cycle, an international team of scientists has successfully probed a distant star.

By monitoring the star's sound waves, the team has observed a magnetic cycle analogous to the sun's solar cycle.

Results of the study, conducted by scientists at the U.S. National Center for Atmospheric Research (NCAR) in Boulder, Colo., and colleagues in France and Spain, are published this ...

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