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
Can we use php variable in javascript?
What is composer used for?
How to remove white spaces from the beginning and/or the end of a string in php?
What is php session start?
How long is a php session valid?
How to check whether a number is prime or not?
Why do we use hooks?
What is the function of trim?
what is variable scope, which variables are accessible from where and what are "undefined variable" errors?
What is prepare in php?
What is the goto statement useful for?
What is a php object?
Which is a perfect example of runtime polymorphism?
What is a stored procedure in mysql?
How to get the number of characters in a string?