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


Please Help Members By Posting Answers For Below Questions

Can I use php in html?

559


What is PECL?

777


What does isset() function?

545


What is the php function that removes the last element of the array and returns it?

509


What is php array function?

543






Which method removes the last element from the end of an array?

496


Tell me what is the difference between unset() and unlink()?

534


Why should I learn php?

512


How do I check if a given variable is empty?

528


What is a controller in php?

555


How to return ascii value of character in php?

593


Is facebook still written in php?

554


How to convert a string to lowercase in php?

558


Which function would you use to insert a record into a database in php?

564


Can we extend final class in php?

511