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 the php function that removes the first element of the array and returns it?
Tell me what is the difference between the functions strstr() and stristr()?
What is isset in php?
How do you count numbers in php?
How to get the ip address of the client?
Tell me in php, objects are they passed by value or by reference?
Is php closing tag necessary?
Is php used anymore?
What is php addslashes?
Can we run php on tomcat server?
Which is the latest version of php?
What is isset php?
Tell me what is the use of mysql_real_escape_string() function?
can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.
How to repeat a string to a specific number of times in php?