string in string PHP script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: fundisom.com
  • Last update:
  • Language: PHP
  • Price:GPL
  • Company: fundisom (View more)

string in string script description:




Publisher review:
string in string - php snippet String in string - php snippet

// InStr function // checks for an occurance of a string // within another string function InStr($String,$Find,$CaseSensitive = false) { $i=0; while (strlen($String)>=$i) { unset($substring); if ($CaseSensitive) { $Find=strtolower($Find); $String=strtolower($String); } $substring=substr($String,$i,strlen($Find)); if ($substring==$Find) return true; $i ; } return false; } // A similar function, returns the number of occurances function InStrCount($String,$Find,$CaseSensitive = false) { $i=0; $x=0; while (strlen($String)>=$i) { unset($substring); if ($CaseSensitive) { $Find=strtolower($Find); $String=strtolower($String); } $substring=substr($String,$i,strlen($Find)); if ($substring==$Find) $x ; $i ; } return $x; } // Another similar function, this will return the position of // the string. returns -1 if the string does not exist function InStrPos($String,$Find,$CaseSensitive = false) { $i=0; while (strlen($String)>=$i) { unset($substring); if ($CaseSensitive) { $Find=strtolower($Find); $String=strtolower($String); } $substring=substr($String,$i,strlen($Find)); if ($substring==$Find) return $i; $i ; } return -1; } ?>
string in string is a PHP script for Snippets scripts design by fundisom. It runs on following operating system: .

Operating system:


Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5