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

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

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

Okay