Login   Register  
PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 5 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.
?>