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 |
What are php filters?
If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
What is difference between post and put in rest?
What is singleton design pattern in php?
What are the security measures we have to take for our site not to hack by others.
3 Answers Infosys, Torque Infotech,
What is move_uploaded_file in php?
Is php still used?
Difference between get and post method.
How to execute an sql query?
What is the difference between echo and print statement?
11 Answers Rushmore Consultancy,
What are the advantages of stored procedures?
What is the function file_get_contents() useful for?