ShortTagExpander
class ShortTagExpander (View source)
Methods
string|null
expandCode(string $code, bool $expandShortEcho)
Replace the short PHP open tags to long tags (<?
to <?php
) and optionally the short echo tags (<?=
to <?php echo
).
Details
string|null
expandCode(string $code, bool $expandShortEcho)
Replace the short PHP open tags to long tags (<?
to <?php
) and optionally the short echo tags (<?=
to <?php echo
).