Answer Posted / kapil dhiman
<?php
class DemoTesting{
public $val="India is great";
public function checkThis()
{
//$this-> object of current class
echo $this->val;
}
}
$obj= new DemoTesting();
$obj->checkThis();
?>
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Explain about switch statement in PHP?
What is laravel php?
Tell me are parent constructors called implicitly inside a class constructor?
What the difference between the 'bitwise and' operator and the 'logical and' operator?
explain php variable length argument function.
How is traits used in php?
Is php front end?
How do you define a constant in php?
Who created numbers?
What is the difference between array_map () and array_shift ()?
What is the difference between laravel and php?
Is empty in php?
What are the advantages of triggers?
Difference between $message vs. $$Message in php.
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?