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: 17 years ago
Size: 266 bytes
 

Contents

Class file image Download
<?php

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;
echo
$txt->capitalize('hello world!');

?>