关于print_r($_POST["xx"])
<input type=checkbox name=xx[] value=1>
<input type=checkbox name=xx[] value=2>
<?php
if(!empty($_POST["xx"])){
print_r($_POST["xx"]);
}
?>
如果将两个checkbox都选中的话,打印出的是:Array ( [0] => 1 [1] => 2 )
但是strlen($_POST["xx"])等于5,即Array的长度,不知道该如何得到后面的( [0] => 1 [1] => 2 )