Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php define class

class Bike {
    	function Bike() {
            $this->type = 'BMX';
    }
}

$blackSheep = new Bike();

print $blackSheep->type;
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #define #class
ADD COMMENT
Topic
Name
6+7 =