What is The difference between ' and " where they can ben
in between or outmost and how
Answers were Sorted based on User's Feedback
Answer / uttam thakor
variables and escape sequences for special characters will
not be expanded when they occur in single quoted strings.
E.G.
$var = 10;
//if we type
echo "$var"; // output : 10
echo '$var'; // output : $var
echo "\nabc"; //output: abc
echo '\nabc' //output :\nabc
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / rajesh
variables within "" are evaluated where as variables within
'' are printed as it is, and execution of '' based statement
are faster when compared to ""
| Is This Answer Correct ? | 2 Yes | 0 No |
How can we determine whether a variable is set?
What is html used for?
How to get ip address of a server in php?
Explain Type hinting in PHP?
What is isset in php form?
What is the use of count() function in php?
Will a comparison of an integer 12 and a string "13" work in php?
How to set a value in session? How to remove data from a session?
Why is php so popular?
What do you mean range() in php?
How to retrieve values out of an array?
how to add file in php?