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 does a dependant variable mean?
How many data types are there in php?
What's diffrence between Get() and Post() Function
What is difference between php and wordpress?
what is session_set_save_handler in PHP?
how to upload more than 50 mb? i tried but session was expired....certain time .....i was set session duration three days .... how to rectified? if any one know that post ur answer as soon as possible? thanks
How do I end a php session?
how to display and include the user system date/time in a php program/project
What version of php do I have windows?
Tell me what are the correct and the most two common way to start and finish a php block of code?
To find out the current year is leap year or not which date() function we've to use.Give the syntax also
How to terminate the execution of a script in PHP?