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 |
Is PHP an open source software?
What is namespace in php?
What are the popular frameworks in php?
What is cms php?
how to uploade video in php????
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?
What is var_dump?
Is age interval or ordinal data?
Tell us why did you choose this particular career path?
How to add 301 redirects in PHP?
How to swap two variables without using 3rd temp variable.
Explain how is it possible to cast types in php?