Login   Register  
PHP Classes
elePHPant
Icontem

File: string_example.php

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

?>