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
How to use http headers inside php?
How to insert an new array element in array?
what the new feature add in php 7.2?
What is csrf cookie?
Is laravel an oop?
How do I know my xampp version?
What does sign mean php?
Can we use onclick in submit button?
What does the initials of php stand for?
What is the use of mvc in php?
How to get number of elements in an array?
How to get the number of characters in a string?
What is the use of extract function in php?
What is empty php?
How can you submit a form without a submit button?