Return to Snippet

Revision: 41100
at February 12, 2011 01:02 by Thaicloud


Initial Code
class Visitors
   {
      public function greetVisitor()
      {
         echo "Hello<br />";
      }

      function sayGoodbye()
      {
         echo "Goodbye<br />";
      }
   }

   Visitors::greetVisitor();
   $visitor = new Visitors();
   $visitor->sayGoodbye();

Initial URL

                                

Initial Description

                                

Initial Title
Basic Public / Private Function Call

Initial Tags

                                

Initial Language
PHP