- 1
$x=5/*+15*/+7; echo $x;
can any explain me this code
6 ответов
+ 1
The $ is used to define var name in PHP
/*this is a comment text*/ in PHP ; you use a semicolon { ; } to finish the statement.
the echo statement prints the var
so $x=5*/+15*/+7; echo $x;
is more like
$x= 5 + 7;
echo $x; /* { 12 } */
+ 1
From what source are you posting this? your code is incorrect!
Are you even using the CodePlayground in the Sololearn app?
0
thank you☺☺☺
0
$rs=2."2"; echo 2.$rs.$rs;
0
Sure, but that is incorrect
$rs = 2.2; echo $rs.$rs;
0
$rs=2."2";echo 2.$rs-$rs;....answer is 200...how??