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

Can we use php variable in javascript?

1061


What is composer used for?

997


How to remove white spaces from the beginning and/or the end of a string in php?

1046


What is php session start?

1069


How long is a php session valid?

1056


How to check whether a number is prime or not?

1114


Why do we use hooks?

969


What is the function of trim?

983


what is variable scope, which variables are accessible from where and what are "undefined variable" errors?

1139


What is prepare in php?

1053


What is the goto statement useful for?

1049


What is a php object?

986


Which is a perfect example of runtime polymorphism?

1024


What is a stored procedure in mysql?

1135


How to get the number of characters in a string?

1074