Archive for April, 2004

Handling tab to space conversions

Posted on April 5th, 2004 in Code Repository | 5 Comments »

tab2space() converts tabs to the appropriate amount of spaces to preserving formatting.

Read the rest of this entry »

Quick and easy random string generation

Posted on April 5th, 2004 in Code Repository | 29 Comments »

str_rand() provides a quick wrapper for customised random string output.

Read the rest of this entry »

Highlighting a search string in HTML text

Posted on April 5th, 2004 in Code Repository | 37 Comments »

str_highlight() provides a variety of text highlighting options for plaintext or HTML strings.

Read the rest of this entry »

Creating a string exerpt elegantly

Posted on April 5th, 2004 in Code Repository | 6 Comments »

str_chop() provides a number of options for trimming long text into something suitable for display.

Read the rest of this entry »