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
Why does php need server?
Why would we use === instead of ==?
What is list in PHP?
What is the current php version?
What are php filters?
Explain what does the unset() function means?
Is php is dying?
how can i develop forum code? any one pleale help me on this question
How can we check the value of a given variable is a number?
What is difference between get and post?
What is the method to execute a php script from the command line?
What is the scope of a variable defined outside a function?
I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?
What is smarty?
How do I check if a given variable is empty?