<?php
class A {
var $a = 10;
public function printvalue() {
echo $this->a;
}
}
$a = new A();
$a->printvalue();
?>
This is the example code for the basic oops concept php script..
class A {
var $a = 10;
public function printvalue() {
echo $this->a;
}
}
$a = new A();
$a->printvalue();
?>
This is the example code for the basic oops concept php script..
0 comments:
Post a Comment