+ 2

In php what is the difference between '' & "" :

Example: Echo 'hhfododlyd'; And Echo "otsogdogdg";

3rd Apr 2020, 10:32 AM
Abdelwadoud ACHOUCHE
Abdelwadoud ACHOUCHE - avatar
2 ответов
3rd Apr 2020, 10:43 AM
Marco
Marco - avatar
+ 2
When printing output, double quoted string expands variable contents. Single quoted string doesn't. <?php $org = 'SoloLearn'; echo 'Single quote -> Welcome to $org<br />'; echo "Double quote -> Welcome to $org<br />"; ?>
3rd Apr 2020, 10:54 AM
Ipang