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
what is mean by portal
What are the differences between require and include?
Explain me how failures in execution are handled with include() and require() functions?
What is mysql_real_escape_string used for?
Explain me the difference between include and require?
What are the different ways to login to a remote server?
Can you explain, when to use if-else if-else over switch statements?
What are include() and require() functions?
Write the statements that are used to connect php with mysql
How many records can be stored in mysql table?
How many data types are there in php?
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?
What is difference between echo and print in php?
Is php still used?
Who is known as the father of php?