Home >Backend Development >PHP Tutorial >php中不能用接续三目的写法吗

php中不能用接续三目的写法吗

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:44:161001browse

php中不能用连续三目的写法吗

本帖最后由 lghyt2 于 2014-01-07 11:20:34 编辑
<br />($bqr[classid]==7) ? $val=$arrImg[0][$bqno3-1]:<br />($bqr[classid]==8) ? $val=$arrImg[1][$bqno3-1]:<br />($bqr[classid]==9) ? $val=$arrImg[2][$bqno3-1]:<br />($bqr[classid]==10) ? $val=$arrImg[3][$bqno3-1]:false;<br />
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