数组怎么取得值

WBOY
Release: 2016-06-13 11:45:06
Original
1134 people have browsed it

数组如何取得值?

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template