+ 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 😂
8 Answers
+ 4
Rose Falahee, you better know why it is so😂😂
+ 4
yeah! Concatination is point ., not +
+ 3
lol @Nursultan Esirkegenov im sorryyy its just that im so used to C that i apply its concept to PHP 😂😂
+ 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?😂😂😂
+ 1
challenge only in HTML
0
try
$html = "PHP is";
$html = $html." ";
$html = $html."the best";
0
😁
0
$html = "PHP is";
$html .= " ";
$html .= "the best";