Skip to content

Instantly share code, notes, and snippets.

View AzeemMichael's full-sized avatar

Azeem Michael AzeemMichael

View GitHub Profile
@AzeemMichael
AzeemMichael / StringTokenizer.class.php
Created October 2, 2011 23:39
The string tokenizer class allows an application to break a string into tokens.
<?php
/**
* The string tokenizer class allows an application to break a string into tokens.
*
* @author Azeem Michael
* @example The following is one example of the use of the tokenizer. The code:
* <code>
* <?php
* $str = "this is:@\t\n a test!";
@AzeemMichael
AzeemMichael / Comparable.interface.php
Created October 3, 2011 01:09
The String class represents character strings and performs several string manipulation operations
<?php
/**
* This interface imposes a total ordering on the objects of each class that implements
* it. This ordering is referred to as the class's natural ordering, and the class's
* compareTo method is referred to as its natural comparison method
* @author Azeem Michael
*/
interface Comparable {
/**