PHP Classes


Recommend this page to a friend!
  Classes of Ovunc Tukenmez  >  CompareStr  >  >  Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: CompareStr
Compare strings to find which characters changed
Author: By
Last change:
Date: 4 years ago
Size: 890 bytes


Class file image Download

CompareStr PHP Class

<strong>CompareStr</strong> is a <strong>PHP</strong> class that can be used to can find number of changed chars as well as indexes of commonly used sequenced chars between two strings.

Example script is included in the package. (example.php)<br /> <h2>Sample Output <ul> <li> Old string: 285427<br> New string: 296427<br> Number of changes: 2<br> Commonly used sequenced chars count: 4<br> <br> <b>2</b>85<b>4</b><b>2</b><b>7</b><br> <b>2</b>96<b>4</b><b>2</b><b>7</b> </li> </ul>

<h2>Public Methods of Class</h2> <ul> <li>setOldString()</li> <li>getOldString()</li> <li>setNewString()</li> <li>getNewString()</li> <li>compare()</li> </ul>

<h2>Class Requirements</h2> <ul> <li>PHP 5 >= 5.5.0</li> </ul>

Thanks for checking out this class! If you have improvement idea or bug fix, please contribute this class.<br /> <br /> <br /> Ovunc Tukenmez

For more information send a message to info at phpclasses dot org.