---
title: "Would you initialize your strings with single quotes or double quotes?"  
description: "Would you initialize your strings with single quotes or double quotes?"  
author: "Anonymous User"  
published: 2012-05-04  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/1436/would-you-initialize-your-strings-with-single-quotes-or-double-quotes  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# Would you initialize your strings with single quotes or double quotes?

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.\

## Answers

### Answer by Anonymous User

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.\


---

Original Source: https://www.mindstick.com/interview/1436/would-you-initialize-your-strings-with-single-quotes-or-double-quotes

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
