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 |
Explain Whitespace Characters?
Is server side a session?
What is final class and final method in php?
What is the use of 'print' in php?
What are the difference between overloading and overriding in oops?
Does session expire on closing browser?
How to get the total number of values in an array?
What are traits? How is it used in php?
What are advantages of .htaccess?
Does php pass arrays by reference?
Tell me what is mean by an associative array?
What is the difference between $var and $$var?