Define boolean Class properties : Class Property : Class PHP Source Code


PHP Source Code » Class » Class Property »

 

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);     
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Class
» Class Property