Search code examples
phpphp-shorttags

PHP Closing Tag: =?>


I've just seen this comment on php.net, which contains the following snippet of code:

</head>
<?= ob_flush(); =?>
<body>

I've not seen the =?> used before (I'm fine with the <?=, that's obvious) and when I put it in a test file it gave a syntax error. So, is this just a typo, or is there any situation where this is syntactically valid?


Solution

  • Typo.

    There is a lot of junk in php.net comments.

    As of recently, it's now possible to vote on comments on php.net.