|
|
|
<?
/*
Look for the *position* of the first occurence of string2
in string1, beginning at position start.
*/
function InStr($Start, $String1, $String2)
{
$i = $Start;
while ($i < strlen($String1) - strlen($String2))
{
if (substr($String1, $i, strlen($String2)) == $String2)
{
return $i;
exit();
}
$i++;
}
return 0;
}
?> |
|
| PHP-MySQL shopping cart
Categories : PHP, Ecommerce, Complete Programs | | | Functions to access a NNTP/NNRP newsserver. Complete set with examples is at ftp://ftp.nederland.net/pub/nnrplib Categories : Search, PHP, Complete Programs | | | phpCards - PHP/mySQL postcard script with web based admin to add, edit, and delete cards and categories. Very easy to install. Categories : PHP, Complete Programs, HTML and PHP, MySQL | | | Avoiding or Detecting high bit characters in a string. Useful when you want to create a valid RSS feed Categories : PHP, Strings, Unicode, Regexps, Rich Site Summary (RSS) | | | Expose - PHP template engine, supports server and client-sided caching,a plugin system, multiple languages, template script language is based on PHP itself. Categories : PHP, PHP Classes, Templates, Complete Programs | | | Tropicalm Genetree Family (MySQL based family tree) Categories : PHP, Interfaces, Databases, MySQL, Complete Programs | | | explode() and SQL blobs Categories : General SQL, Strings, PHP, Databases | | | What is the best way to split a string that consists of two bits of data
seperated by whitespace? Categories : Regexps, Strings, PHP | | | phpWebCam v1.0- Webcam management software - Automatically checks if you're online, and comes with a caption tool capable of handling multiple users. Categories : PHP, Complete Programs, HTML and PHP | | | Using data from a string. Categories : PHP, Strings, CURL | | | a class for doing payments to a cybercash server
Categories : Ecommerce, Complete Programs, PHP Classes, PHP | | | Web Self Service Resource Scheduler Using php3 and MySQL Categories : PHP, Complete Programs, MySQL | | | Massreplace Categories : Filesystem, Regexps, Strings, PHP | | | Validator 98 - a PHP-script to generate form-validation-code in JavaScript. Categories : Complete Programs, Java Script, PHP, HTML and PHP | | | Accepts a database & hostname from a user and then HTTP username and password. Uses this to connect to a MySQL database. Produces a form based on the tables it finds there to allow the user to do SELECTs, INSERTs, and DELETEs. Categories : Databases, PHP, MySQL, Complete Programs | |
| | | | Broom Neuenhause wrote :684
Is there a difference between this function and the standard "int strpos (string haystack, string needle [, int offset])"?
| |
|
|
|