Home  >  Article  >  Backend Development  >  php中的__get()和__set()方法的使用

php中的__get()和__set()方法的使用

WBOY
WBOYOriginal
2016-06-06 20:25:16979browse

php中的__get()和__set()方法的使用

回复内容:

php中的__get()和__set()方法的使用

因为11行的$n > 0为false,你是不是实际期望里面那里是$v > 0

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