DEV Community

Bildad
Bildad

Posted on

What is. $x=5/*+15*/+5;

Top comments (2)

Collapse
 
hataiit9x profile image
Tai Ha

/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*/+5;
is more like
$x= 5 + 5;
echo $x; /* { 10 } */

Collapse
 
bildadowuor profile image
Bildad

Thank you for the help