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 is url encoding and decoding in php?
How to assigning a new character in a string using php?
What are magic constants in php?
What is smarty?
What is difference between single quotes and double quotes in php?
List some array functions in php?
What is the meaning of xdebug?
How to calculate the difference between two dates using php?
Explain about objects in PHP?
How to get path of php.ini with a php script?
How to count a number of words in a string in php?
Give small demo of writting OOP in PHP-mysql.