<?PHP
//Start a new class
class VertLetters
{
//Start the function
function VerticalLetters($text)
{
//Wordwrap the string!
$newtext = wordwrap($text, 1, '<BR \>', 1);
//Echo it
echo $newtext;
}//Close the function
}//Close the class
//Call the class
$this = new VertLetters;
//Change some text!
$this -> VerticalLetters('Test');
Simple PHP class.
Started by iPoptart, Jun 18 2005 01:42 PM
No replies to this topic
#1
Posted 18 June 2005 - 01:42 PM
This class will add <BR /> after each character in a string. Here is the code, it is commented well enough! You have to have atleast SOME knowledge of OOP.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
