+ 21
How the answer is ABBC?
It's a challenge question and I didn't get how it works? See the below screenshot. https://www.sololearn.com/post/489622/?ref=app
16 Answers
+ 31
There is "." to concatenate the first and the second lines. So,
echo 'A'.
b='B'; ==
echo 'A'.b='B'; == echo 'AB';
+ 28
echo 'A'.
$b = 'B';
echo 'B';
echo 'C';
Answer: ABBC because of dot (.)
echo 'A';
$b = 'B';
echo 'B';
echo 'C';
Answer: ABC
+ 21
There's a dot (.) between first and second line which concatenates AB and the rest is same.
+ 16
Been answering this question without understanding. Now I do get it, thanks!
+ 11
Just a small differences
; is replaced by .
That's why answer is ABBC🙃🙂
+ 11
AJ #L1G3
both of these are the same...
<?php
echo 'A'. /* did you see the period */
$b = 'B';
echo 'B';
echo 'C';
?>
<?='A'.$b='B'.'B'.'C';?>
+ 10
Vladimir Got it. If there is semicolon then answer will be ABC. Right?
+ 9
yes , right
+ 9
Sanjay Kamath look at my examples above ... Thanks
+ 5
Because the cache memory is cleared when the second echo command is called ....😐
+ 5
UTKARSH SANGAL and Tony Mark please do not spam threads as this takes away from the quality of the thread and provides no relevant information to those needing help.
Thanks and happy coding.
https://code.sololearn.com/Wv5gTHy1N6Ji/?ref=app
+ 4
AB are concatenated by the .(dot) btwn line 1 and 2
+ 4
AJ #L1G3
It's in the dot (.) and semicolon (;).
Many viable answers here already... 👌
+ 3
Please does anyone know sololearn gmail account
+ 3
Thanks
+ 3
david chongo
I totally understand how that works! ☺️😊😂
We all do!