PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Senad Meskin   String Builder   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: File with example
Class: String Builder
Concatenate strings in several ways
Author: By
Last change: Added more examples
Date: 16 years ago
Size: 203 bytes
 

Contents

Class file image Download
<?php
include_once('StringBuilder.php');
$s = new StringBuilder();

$s->append("TriLLi");
$s->appendLine("New Line");
$s->AppendLine();
$s->appendFormat("%s|%s", 10, 20);
echo
$s->toString();
?>