Home > Backend Development > PHP Tutorial > 在EOD中输出数组的值

在EOD中输出数组的值

WBOY
Release: 2016-06-23 13:28:53
Original
1145 people have browsed it

如题,我现在有一个读取自checkbox的数组checkbox[]
如何将checkbox[]的值传入EOD?


回复讨论(解决方案)

EOD 是什么东西?

EOD 是什么东西?


EOD
这样的

$a = array(1,2,3);
那这个数组你怎么放进去?

$a = array(1,2,3);
那这个数组你怎么放进去?


自己琢磨找到方法了
for($i=0;$i { 
if(!is_null($checkbox[$i]))
$value = $value.' 这里写间隔符 如‘,’或者‘;’ '.$checkbox[$i];
}
然后
$value
EOD
就能把数组写进去了
代码:
for($i=0;$i<=count($checkbox);$i++){ 	if(!is_null($checkbox[$i]))	$value = $value.' /*这里写间隔符 如‘,’或者‘;’*/'.$checkbox[$i];}<<<EOD$valueEOD;
Copy after login
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