T_INLINE_HTML? What's wrong with this?

前端 未结 2 1823
孤独总比滥情好
孤独总比滥情好 2021-01-05 12:22



    fetch()) : ?>
        
相关标签:
2条回答
  • 2021-01-05 13:01

    The parser expects a T_CASE token but finds the newline after switch($data['type']) : ?>.

    switch (1) : ?> <? case 1: break; endswitch;
    

    gives a parse error and so does

    switch (1) : ?>\n<? case 1: break; endswitch;
    

    while

    switch (1) : ?><? case 1: break; endswitch; 
    

    does not. ;-)

    0 讨论(0)
  • 2021-01-05 13:15

    merge line 1 and 2

      <? switch($data['type']):
         case 'log': ?>
    

    see the comment in this link (jeremia at gmx dot at 28-Jan-2008 02:52)

    0 讨论(0)
提交回复
热议问题