Reputation: 194
<!--?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
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
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
Reputation: 522597
This is an HTML comment.
<!-- comment -->
It's not a valid PHP opening tag and is ignored by PHP.
Upvotes: 3
Reputation: 9819
It has no meaning. Looks like someone is commenting it out with a HTML tag.
Upvotes: 1