Home  >  Article  >  Backend Development  >  帮小弟我解释一句代码

帮小弟我解释一句代码

WBOY
WBOYOriginal
2016-06-13 13:23:35859browse

帮我解释一句代码
$str = (isset($_POST['source']) ? $_POST['source'] : '');
这句话怎么理解啊。其中的问号和冒号又分别起什么作用啊。麻烦
大神们指点下。我找资料没找到。
其中source来自于

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