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...


What is The difference between ' and " where they can ben
in between or outmost and how

Answers were Sorted based on User's Feedback



What is The difference between ' and " where they can ben in between or outmost and how..

Answer / uttam thakor

variables and escape sequences for special characters will
not be expanded when they occur in single quoted strings.

E.G.

$var = 10;

//if we type
echo "$var"; // output : 10
echo '$var'; // output : $var

echo "\nabc"; //output: abc
echo '\nabc' //output :\nabc

Is This Answer Correct ?    7 Yes 0 No

What is The difference between ' and " where they can ben in between or outmost and how..

Answer / rajesh

variables within "" are evaluated where as variables within
'' are printed as it is, and execution of '' based statement
are faster when compared to ""

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More PHP Interview Questions

What is overloading and overriding in oop?

0 Answers  


1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is having same cookie name and different values what will be the output if we echo the cookie name from those sites ? How can we solve this issue (How can we specify the domain name)?

8 Answers   TCS,


Does php use html?

0 Answers  


What is $_ env in php?

0 Answers  


What are the features of object-oriented programming in php?

0 Answers  


Explain me what are the 3 scope levels available in php and how would you define them?

0 Answers  


This is regarding file uploading. 1. Who will be the owner of the uploaded file ? 2. What permission you will give for an uploaded file ? 3. What is mean by user, group and others and what kind of permission you will give for each user and explain the reason?

1 Answers   IBM,


How do I check if a given variable is empty?

0 Answers  


What is php glob?

0 Answers  


How do I run a php file?

0 Answers  


What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?

0 Answers  


What is the difference between explode and split?

0 Answers  


Categories