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

Which functions are used to remove whitespaces from the string?

0 Answers  


How do you end a function in python?

0 Answers  


Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.

0 Answers   Amazon, FGD,


How is it possible to remove escape characters from a string?

0 Answers  


How to move uploaded files to permanent directory?

0 Answers  


What is cms php?

0 Answers  


What is php good for?

0 Answers  


What is the purpose of break and continue statement?

0 Answers  


Functions in IMAP, POP3 AND LDAP?

1 Answers   Rushmore Consultancy,


Why shouldn't I use mysql_* functions in php?

0 Answers  


Which functions are used to count the total number of array elements in php?

0 Answers  


How can we upload a file in php?

0 Answers  


Categories