PHP does not support attribute value problem

WBOY
Release: 2016-08-18 09:15:41
Original
1328 people have browsed it

When rewriting the theme, I encountered a rather annoying problem:

 
  • Copy after login
    Copy after login

    If this code is inserted into the PHP file, an error will be reported:

    [16-Aug-2016 13:45:49 UTC] PHP Parse error: syntax error, unexpected 'active' (T_STRING), expecting ',' or ';' in /home/sunhbjaq/public_html/site/snippets/ sidebar.php on line 17

    After removing class="active", it will return to normal.
    How to solve it? Thanks. (Newbie, please answer patiently, thank you very much!)
    Note: Full text of sidebar.php:

     
    Copy after login
    Copy after login

    Reply content:

    When rewriting the theme, I encountered a rather annoying problem:

     
  • Copy after login
    Copy after login

    If this code is inserted into the PHP file, an error will be reported:

    [16-Aug-2016 13:45:49 UTC] PHP Parse error: syntax error, unexpected 'active' (T_STRING), expecting ',' or ';' in /home/sunhbjaq/public_html/site/snippets/ sidebar.php on line 17

    After removing class="active", it will return to normal.
    How to solve it? Thanks. (Newbie, please answer patiently, thank you very much!)
    Note: Full text of sidebar.php:

     
    Copy after login
    Copy after login

    This is a syntax error. Please upload the code. Thank you.

    Related labels:
    php
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!