Home  >  Article  >  Backend Development  >  数组怎么取得值

数组怎么取得值

WBOY
WBOYOriginal
2016-06-13 11:45:061126browse

数组如何取得值?

	$flags = $_POST['flags']; <br />	foreach ($flags as $k => $v) {<br />            $flag = $v;<br />			echo $flag;die;<br />        }

post过来是数组 打印也能显示。我foreach之后echo 只有一个数。咋回事?

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