user1831003
user1831003

Reputation: 194

what does this tag mean in a .php file?

<!--?php  

It's very hard to google this. I understand what <?php means, but why !-- in middle?

It seems to have some bizarre effect that I am unaware of.

Upvotes: 0

Views: 334

Answers (5)

EM-Creations
EM-Creations

Reputation: 4301

It's literally just a HTML comment.

Upvotes: 0

Ripa Saha
Ripa Saha

Reputation: 2540

This is an HTML comment.

 <!-- comment -->

if in page the syntax is like below

    <!-- <?php ?>-->

then that php blog will also not execute

Upvotes: 0

AgnosticDev
AgnosticDev

Reputation: 1853

some IDE's will let you comment out PHP code with this statement. Sublime will for sure. It is not a way to start a PHP statement though.

Upvotes: 0

deceze
deceze

Reputation: 522597

This is an HTML comment.

<!-- comment -->

It's not a valid PHP opening tag and is ignored by PHP.

Upvotes: 3

Nev Stokes
Nev Stokes

Reputation: 9819

It has no meaning. Looks like someone is commenting it out with a HTML tag.

Upvotes: 1

Related Questions