数组如何取得值?
$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