|
|
|
TStringList object is used to store and manipulate a list of strings.
TStringList implements methods from Delphi
You Can:
Load/Save from/to File // Load/save external file to a TSTringList
IndexOf // Returns the position of a string in the list.
Sort // Sorting the StringList
Count // Indicates the number of strings in the list.
Clear // Deletes all the strings from the list.
Delete // Removes the string specified by the Index parameter
Insert // Inserts a string at the position specified by Index.
Add // Adds a new string to the end of list.
<?
$userfile = 'somefile.tmp';
require("ABClasses.inc");
if (!$SL->LoadFromFile($userfile)) echo $SL->GetLastError();
for ($l=0;$l<$SL->Count();$l++ )
echo $SL->Strings[$l].'<br>';
?> |
|
| Filter - A simple class that lets you use multiple functions to create custom filters. Categories : PHP, PHP Classes, Strings | | | PHP5 URL Object Categories : PHP, PHP Classes, URLs, Strings | | | STR - a Perl-like string manipulator class - The str class provides 4 perl-like methods for manipulating strings and
other scalar variables. Categories : PHP, PHP Classes, Perl, Strings | | | Compare two texts and display a block of text with the differences between them. Categories : PHP, PHP Classes, Filesystem, Strings, Arrays | | | How to control the number of decimal places when outputting numbers. Categories : PHP, Strings, Variables | | | Class that allows the PHP developer to create and manage UNIX like password files suitable for use as Apache authentication password files.
Categories : HTTP, PHP, PHP Classes, Filesystem | | | filesplit : Split big text files in multiple small ones Categories : PHP, Log Files, Filesystem, PHP Classes | | | Vote-Poll script that has a wrapper class that allows the user to create
multiple polls on the same page with little trouble. Categories : PHP, PHP Classes, HTML and PHP | | | 3dLib - a class for drawing in 3D space. Supported functions: Line, SetPixel, Polygon, FilledPolygon, etc. 3dChart() function has been added for one-call drawing of 3d charts. Support of mostly used 3d-transformations. Categories : Graphics, Math., PHP Classes, PHP, Charts and Graphs | | | The GTV.class allows you to extract a value between any HTML tag or between any TEXT on a web page. Categories : PHP, PHP Classes, Regexps | | | 3 lines of Code to extract Tar, Zip, Gzip etc.. Categories : PHP, Filesystem, PHP Classes, Compression | | | Simple class to create insert and update statements. Independent of the access to the database. Makes handling complex inserts easier - especially when the table structure is liable to change. Categories : Databases, PHP Classes, PHP | | | Password reminder Categories : PHP, PHP Classes, Databases, MySQL, Mail | | | Form Elements Class Categories : PHP, PHP Classes, Form Processing | | | Produces browser-safe strings while preserving HTML tags. Categories : Strings, HTTP, PHP, HTML and PHP | |
|
|