<pre><?php/* Random comments for this boredom-fueled PHP script! */class PointlessFunctions { //Open up a class, called PointlessFunctions (duh) function printstring ($string){ //A pointless function that prints a string! print $string; //It would be easier to just do this, but this is the 'fun' way } function repeatstring ($string, $times){ //A pointless function that repeats the given string! $return = str_repeat($string, $times); //Again, it would be easier to do this outside of a class return $return; //Return the string for it to be used } function rotatethirteen($string){ //Caesar-type 'encoding'... $return = str_rot13($string); return $return; //Self explanatory }}$pf = new PointlessFunctions(); //Create the class object for us to use functions defined in the PointlessFunctions class$string = "Hello my name is PHP\n"; //The string we will be playing around with$pf->printstring($string); //This already prints something, so it doesn't need a print for itprint "Here is the same string twice!\n"; //Wow!print $pf->repeatstring($string, 2); //Call the function that we 'made' and print the returned stringprint "\nTry to understand this...\n"; //It's a challenge!$rot13str = $pf->rotatethirteen($string); //Get the rot13 version of the string and store it as a variableprint $rot13str; //Print that variableprint "\nWell, here's that string... with each character rotated by 13 places...\n"; //Aka, the original stringprint $pf->rotatethirteen($rot13str); //Print the original or rot13(rot13(string)) versionprint "\nGet it now?"; //Duh?die("\nOh noes, I r dead.</pre>"); //Woo, dead.?>