Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

"$this" what type of object it is?

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


Please Help Members By Posting Answers For Below Questions

How to use http headers inside php?

998


How to insert an new array element in array?

976


what the new feature add in php 7.2?

910


What is csrf cookie?

859


Is laravel an oop?

861


How do I know my xampp version?

937


What does sign mean php?

922


Can we use onclick in submit button?

966


What does the initials of php stand for?

898


What is the use of mvc in php?

937


How to get number of elements in an array?

939


How to get the number of characters in a string?

974


What is the use of extract function in php?

917


What is empty php?

932


How can you submit a form without a submit button?

909