<?php $html="PHP is"; $html+=" "; $html+="best"; echo $html; ?>output is 0 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

<?php $html="PHP is"; $html+=" "; $html+="best"; echo $html; ?>output is 0

anybody plz explain this one ??

30th Sep 2017, 2:52 PM
Yash Nikam
Yash Nikam - avatar
1 Answer
+ 6
$html .= " "; "." is string contactonation. "+" is addition.
30th Sep 2017, 3:00 PM
A_Hook
A_Hook - avatar