Home  >  Article  >  Backend Development  >  PHP has doubts about assigning values ​​to class attributes

PHP has doubts about assigning values ​​to class attributes

WBOY
WBOYOriginal
2016-07-29 08:55:271498browse

Test code:

$a = new controller;
$a->test();

classcontroller{public$menuList = time();
    publicfunctiontest(){echo$this->menuList;
    }
}
?>

This will report an error, why

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces PHP’s doubts about class attribute assignment, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
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