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?

Answers were Sorted based on User's Feedback



"$this" what type of object it is?..

Answer / 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

"$this" what type of object it is?..

Answer / kapil dhiman

<?php
class DemoTesting{

public $val="India is great";

public function checkThis()
{
//$this-> object of current class
echo $this->val;

}

}

$obj= new DemoTesting();
$obj->checkThis();
?>

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More PHP Interview Questions

What is orm in php framework?

0 Answers  


describe arguments in header in php?

1 Answers  


How to send Email using PHP with MySQL in Linux Server?..

3 Answers  


What is the difference between rest and soap?

0 Answers  


How session manage in wordpress

1 Answers   HCL, ITBS, TCS,


Whats the difference between include() and require()?

4 Answers  


What was the old name of php?

0 Answers  


Who is the father of PHP and explain the changes in PHP versions?

13 Answers   Befree, iMark Group, Netizen,


Why do we use session?

0 Answers  


is 'easyphp' is compelete technology to design a phpmysql site?

3 Answers  


Which is better session or cookie?

0 Answers  


write the function to fetch a image from mysql databases (datatype blob).

1 Answers  


Categories