Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Define boolean Class properties

Sun Oct 26, 2008 11:35 pm

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




Post a reply
  Related Posts  to : Define boolean Class properties
 Define class helper class to check the method existance     -  
 Define class inside another class C++     -  
 Class static properties     -  
 define final class     -  
 define a Class with a Method     -  
 Define your own exception class     -  
 how to Define abstract class in php     -  
 Define Enum inside a class     -  
 Define getter and setter in php class     -  
 C++ Boolean Operations     -  

Topic Tags

PHP OOP