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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay