DEV Community

Discussion on: Write good PHP - string management

Collapse
 
joemoses33 profile image
Joe 🏴󠁧󠁢󠁷󠁬󠁳󠁿

I get your points!

I'd imagine the execution difference is absolutely trivial!

Concat is 8-11ms, whereas interpolation is 7-10. Definitely not a deciding factor, imo!

I think it comes down to personal preference! Though, for Jr Devs, I think we should always encourage them to learn and use (objectively and subjectively) clearer syntax.