Constructors And Destructors

<?php
     class SimpleClass {
          function SimpleClass($param) {
               echo "Created a new instance of SimpleClass!";
          }
     }
     $myinstance = new SimpleClass;
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.