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


Would you initialize your strings with single quotes or
double quotes?

Answers were Sorted based on User's Feedback



Would you initialize your strings with single quotes or double quotes?..

Answer / rajan vardawaj

Since the data inside the single-quoted string is not parsed
for variable substitution, it’s always a better idea
speed-wise to initialize a string with single quotes, unless
you specifically need variable substitution.

Is This Answer Correct ?    22 Yes 5 No

Would you initialize your strings with single quotes or double quotes?..

Answer / srimanta chakraborty

if in the string,substitution is needed then initialize with
double quotes else single quotes, as it will become fast.

Is This Answer Correct ?    7 Yes 2 No

Would you initialize your strings with single quotes or double quotes?..

Answer / srimanta chakraborty

if in the special character is there then initialize with
double quotes else single quotes, as it will become fast.

Is This Answer Correct ?    5 Yes 5 No

Would you initialize your strings with single quotes or double quotes?..

Answer / jitendra k jain

we can initialize string with single quotes,but in special character case, we need to initialize string with double quotes.the best way to define string with double quote.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More PHP Interview Questions

What is a null coalescing operator in php7?

0 Answers  


What are different types of runtime errors in php?

0 Answers  


How can I maintain the count of how many persons have hit my site?

1 Answers   MTOG, Rushmore Consultancy,


What is $_ request?

0 Answers  


Explain some of the php array functions?

0 Answers  


What are psrs? Choose 1 and briefly describe it?

0 Answers  


How will you sened requests from server1 to server2 from server2 to server3 and so on .. w/o letting the output come to the browser or say the client end in php

3 Answers   Swayam, TCS, Yahoo,


How to genrate report in wordpress cms

0 Answers  


What is mysqli_real_escape_string?

0 Answers  


What is the difference between characters  and #?

0 Answers  


What are the advantages of php mysql?

0 Answers  


What is $this in php?

0 Answers  


Categories