+ 4

PHP Question

Why is the output zero?? $html ="PHP is"; $html +=" "; $html +="the best"; echo $html; i answered php is the best but apparently it's wrong 😂

24th Aug 2017, 12:39 AM
RKJ 🌹
RKJ 🌹 - avatar
8 Réponses
+ 4
Rose Falahee, you better know why it is so😂😂
24th Aug 2017, 1:00 AM
Nursultan Esirkegenov
Nursultan Esirkegenov - avatar
+ 4
yeah! Concatination is point ., not +
24th Aug 2017, 5:55 PM
Val🐯
Val🐯 - avatar
+ 3
lol @Nursultan Esirkegenov im sorryyy its just that im so used to C that i apply its concept to PHP 😂😂
24th Aug 2017, 1:14 AM
RKJ 🌹
RKJ 🌹 - avatar
+ 2
@Rose Falahee. I started learning PHP few times ago. Every time when this question came i made mistake. I was wtf!! is it not like C?😂😂😂
24th Aug 2017, 1:23 AM
Nursultan Esirkegenov
Nursultan Esirkegenov - avatar
+ 1
challenge only in HTML
25th Aug 2017, 9:00 AM
MNaveed
MNaveed - avatar
0
try $html = "PHP is"; $html = $html." "; $html = $html."the best";
24th Aug 2017, 1:06 AM
Sam Tezel
Sam Tezel - avatar
0
😁
24th Aug 2017, 1:56 AM
Kurniawan
Kurniawan - avatar
0
$html = "PHP is"; $html .= " "; $html .= "the best";
28th Aug 2017, 12:34 PM
Edwar Frank Pons Bessio
Edwar Frank Pons Bessio - avatar