PHP Classes

File: string_example.php

Recommend this page to a friend!
  Classes of Wellington   PHP String   string_example.php   Download  
File: string_example.php
Role: Example script
Content type: text/plain
Description: The PHPString example.
Class: PHP String
Process text strings in many ways
Author: By
Last change:
Date: 11 years ago
Size: 324 bytes
 

Contents

Class file image Download
<?php
   
   
include_once 'phpstring.class.php';

   
$string = new PHPString("Content");

   
$string->display();

   
PHPString::br();

   
$string->set("New Content");

   
$string->display();

   
PHPString::br();
   
   
PHPString::write( $string->replace("New", "Very new") );

   
PHPString::br();

   
PHPString::write( $string->toUpperCase() );

?>