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 different ways to redirect from on page to other?
How can I maintain the count of how many persons have hit my site?
1 Answers MTOG, Rushmore Consultancy,
What is artisan in php?
What are the differences between public, private, protected, static, transient, final and volatile?
What is http php?
How to set cookies?
Write a program to swap two numbers using php.
How do I use isdigit function?
What is the maximum size of a table in mysql?
What is file upload?
How can I make a script that can be bilingual (supports english, german)?
What is a helper function?