+ 3

Which one is fastest if $a = 10; echo "Output is: {$a}"; echo "Output is " . $a; echo 'Output is ' . $a; echo "Output is $a";

20th Jul 2016, 11:09 AM
Dushyant Srivastava
Dushyant Srivastava - avatar
6 Réponses
+ 2
No difference you could think of which one is easiest but I think its more preference and some situations one might be easier than the other. Not much time difference
20th Jul 2016, 1:28 PM
GlennV
0
1
21st Jul 2016, 11:28 AM
nayan
0
For better performance i suggest to use the number 3
21st Jul 2016, 5:55 PM
Hafiz Nugraha
Hafiz Nugraha - avatar
0
4
23rd Jul 2016, 7:28 PM
chee yang Eng
chee yang Eng - avatar
0
2 and 3
26th Jul 2016, 8:19 PM
Hitesh Aghara
Hitesh Aghara - avatar
- 1
I think 3.
20th Jul 2016, 5:52 PM
Freelance.bg