A Basic PHP 5 Class : Class Definition « Class « PHP
- PHP
- Class
- Class Definition
A Basic PHP 5 Class
<?php
class myPHP5Class {
public $my_variable;
public function my_method($param) {
echo "called my_method($param)!\n";
echo "my variable is: ";
echo "{$this->my_variable}\n";
}
}
?>
Related examples in the same category