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 we use get in php?
Explain the types of string comparision function in PHP
Which Scripting Engine PHP uses?
What are session variables in php?
What is the use of trim in php?
When to use inquire vs enquire?
What is the functionality of the functions strstr() and stristr()?
Explain include(), include_once, require() and require_once?
Why use php artisan serve?
What is session cookies php?
What is the best way to avoid email sent through php getting into the spam folder?
What is difference between rest api and restful api?
What is the purpose of $_ session?
What is the correct line to use within the php.ini file, to specify that 128mb would be the maximum amount of memory that a script may use?
Tell me what is the use of "enctype" attribute in a html form?