adspace


What is the difference between single quoted string and double quoted string?

Answer Posted / Vibhuti Narayan Patel

In PHP, there are two types of string delimiters: single quotes ('') and double quotes (""). Single-quoted strings allow only a single backslash escape sequence (e.g., '), while double-quoted strings allow more complex escape sequences such as
for new line, for tab,
for carriage return, ' for single quote, and " for double quotes.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current stable version of php?

1126


List some features of php that are deprecated in php7?

1024


What does $_files means?

1166


What is the current stable version of php? What advance thing in php7?

1095


What is the difference between htmlentities() and htmlspecialchars()?

1094


Write a program using while loop?

1122


Tell me what kind of things have you done on the social side?

1067


What sized websites have you worked on in the past?

1088


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

1080


how to detect a mobile device using php

1174


Name and explain five of the PHP error constants?

1039


What is difference between static and final in php?

1109


What is trait in php?

1068


How to calculate the difference between two dates using php?

1146


Explain me is it possible to destroy a cookie?

1032