What is The difference between ' and " where they can ben
in between or outmost and how
Answer Posted / 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 |
Post New Answer View All Answers
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?
When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?
How to make a class in php?
What is form submission?
What are majic methords in php?
What is the use of callback in php?
How to open a file in php?
Explain the difference between require() and require_once()?
What are the environmental variables?
How do functions work?
What is the use of Php variables?
What is difference between post and put in rest?
What is the function of trim?
What is mvc? Why its been used?
What is difference between sql and php?