I want to know where and when I have to use single quote and double quotes in PHP ?
abhi10kumar 0 Junior Poster
Recommended Answers
Jump to PostWell, you can use both whenever you want. But, they've different response. For example:
$name = 'John'; echo 'My name is $name'; // returns My name is $name echo "My name is $name"; // reutnrs My name is John echo 'My name is ' . $name; // …
All 2 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.