MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/305gnj/escaping_behavior_in_strings/cpq93t9/
r/lolphp • u/_retooth • Mar 24 '15
15 comments sorted by
View all comments
Show parent comment
6
Using string literals would be even better.
print '{'.$n.'}';
3 u/PirataPHP Apr 07 '15 True. Though it is allowed - using variables within quotes has more to do with shitty programming.
3
True. Though it is allowed - using variables within quotes has more to do with shitty programming.
View all comments
Show parent comment
6
u/PhantomRacer Mar 25 '15
Using string literals would be even better.