What is the difference between starting a string with single quote and double quote? What you will use in general instance?
Answer Posted / Rizwan Alam Khan.
Single quotes `'` and double quotes `"` can be used to define strings in PHP. The main difference is that single quotes do not interpret escape sequences or variables within the string, while double quotes do. In general instances, use double quotes if the string contains variables or complex content, and use single quotes for short, simple strings to improve performance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers