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 |
Is c similar to php?
What is the use of strpos in php?
How to add comments in php?
How to Retrieve video files in php from database.....and how to store video on database..
Which parts of php are case sensitive?
How to track user logged out or not? When user is idle?
please send me the interview questions and answers to my mail id : srikanthgovardana@yahoo.com or srikanthgovardana@gmail.com
•How to access crystal reports through PHP code?
How can post form values with out press submit button
Tell me what's the difference between include and require?
How to check curl is enabled or not in PHP
Explain what are the different errors in php?