Answer Posted / venky
$this represents the current working class.
if you are accessing the variable or function with in the
same class then $this represents the current working object.
for ex:
class Test{
function fn_testing($a)
{
$a++;
return $a;
}
$c=$this->fn_tesing(1);
}
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is the difference between get and post method in php?
What is array filter in php?
Which php framework is best?
Is php procedural or oop?
Which function would you use to replace a record in a database in php?
What is the use of pear in php?
What is the use of header() function in php?
What is a php session?
How do functions work?
Why is overriding runtime?
Write a query to find the 2nd highest salary of an employee from the employee table?
Is php open source?
What is htaccess in php?
What are the three classes of errors that can occur in php?
How to remove a file?