Define Boolean Class Properties

 
    <?php
     class WebClient
     {
          var $frames;
          var $tables;
          var $layers;
     }
 
 
     $my_browser = new WebClient;
 
     $my_browser->frames = true;
     $my_browser->tables = true;
     $my_browser->layers = true;print("Browser Has Frames: " . $my_browser->frames);
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.