PHP Classes

File: example

Recommend this page to a friend!
  Classes of Tufan Baris YILDIRIM   StringList Class   example   Download  
File: example
Role: Example script
Content type: text/plain
Description: Stringlist Example
Class: StringList Class
Manage lists of strings
Author: By
Last change:
Date: 15 years ago
Size: 396 bytes
 

Contents

Class file image Download
<?php
include 'stringlist_class.php';
 
$str=new Stringlist("Key=Value\nKey2=Value2");

echo
$str->Values('Key2'); // return Value2
$str->SaveToFile('file.txt'); //will write Key=Value\nKey2=Value2 2 lines on file.txt
$str->Count(); // return 2
$str->Text(); //Return All Text
$str->Text('new Text=asdasd'); // Set The Text
$str->Lines()->Add('newline=newValue'); // Add a New Line.
?>