This is a large part of languages ββsuch as PHP and Python, interchangeability between single-quoted strings and double-quoted strings, if the internal quotes are opposite to the external quotes. In more detail with Python, when it changes between them, it does not change the way it works. However, with PHP, single-line strings do not process screens other than single quotes and backslashes. Example:
output = '<h2><p align=center>Search for "' + search + '"</h2>' output = "<h2><p align=center>Search for \"" + search + "\"</h2>"
Long string strings will not work for concatenation, you will need to use .replace (), which is more expensive than concatenation.
source share