DEV Community

Bildad
Bildad

Posted on

1

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

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more