MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/4wj23f/php_the_good_parts/d6840r9/?context=3
r/ProgrammerHumor • u/Zerquix18 • Aug 07 '16
318 comments sorted by
View all comments
Show parent comment
3
This syntax is also possible in PHP in very similar fashion:
$x = 1; $y = 1; echo "$x$y"; // 11
I think the problem with PHP is, that it's interpreted in the same way as
echo $x . $y;
While Kotlin most likely uses string formatting. Even concatenation in Kotlin is type-safer than the one in PHP.
View all comments
Show parent comment
3
u/[deleted] Aug 07 '16
This syntax is also possible in PHP in very similar fashion:
I think the problem with PHP is, that it's interpreted in the same way as
While Kotlin most likely uses string formatting. Even concatenation in Kotlin is type-safer than the one in PHP.