Home >Backend Development >PHP Tutorial > 为什么可添加答案状态claimable 要设定为 不存在$post['userid']??

为什么可添加答案状态claimable 要设定为 不存在$post['userid']??

WBOY
WBOYOriginal
2016-06-06 20:31:21975browse

$rules['claimable']=(!isset($post['userid'])) && isset($userid)

&& !(($post['basetype']=='Q') ? $permiterror_post_q : (($post['basetype']=='A') ? $permiterror_post_a : $permiterror_post_c));

为什么可添加答案状态claimable 要设定为 不存在$post['userid']??

这个怎么理解的?

回复内容:

$rules['claimable']=(!isset($post['userid'])) && isset($userid)

&& !(($post['basetype']=='Q') ? $permiterror_post_q : (($post['basetype']=='A') ? $permiterror_post_a : $permiterror_post_c));

为什么可添加答案状态claimable 要设定为 不存在$post['userid']??

这个怎么理解的?

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