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
What is curl php?
What is action hooks and filter hooks?
How do I display php errors?
How do I use isdigit function?
What is the string concatenation operator in php?
How to pass variables and data from php to javascript?
What is framework in php?
Can we extend multiple classes in php?
What does odbc do in context with php?
What are php filters?
What are the __construct() and __destruct() methods in a php class?
Where do I run php code?
Explain mysql_errno()?
How to execute an sql query? How to fetch its result?
How to check an key is exists in array?