Would you initialize your strings with single quotes or
double quotes?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
How do you call a constructor for a parent class?
What is php date function?
Is apache needed for php?
How can I execute a PHP script using command line?
How many bootable file in O/S - XP,2000, and 98. which are the files.
How to add comments in php?
What are static variables in php?
Tell me what type of operation is needed when passing values through a form or an url?
what is the difference between GET and POST?
21 Answers AdVine, Evon Technologies, GVD Infotech, RedAlkemi, SoftSol,
What is serialization / object serialization ?
full form of php??
What the difference between WAMP5 1.7.3 and WampServer 2?