PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Chris Lam  >  Text Helper Class  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: class usage example
Class: Text Helper Class
Perform several types of text processing operation
Author: By
Last change:
Date: 15 years ago
Size: 266 bytes


Class file image Download

require_once 'Text.class.php'; // Require/include the class file

// You don't need to instantiate the class
echo Text::capitalize('hello world!');

// by the way you can do so if you like
$txt = new Text;
$txt->capitalize('hello world!');