$VoteCount  =  Explode("|",$VoteText);
           echo "<Table Width=100%><Form Action=Vote.php Method=Post Target=_blank><tr><td>$VoteTitle</td></tr>";
   If ($MTpye == 0){
   For ($i=0;$i<count($VoteCount);$i++){
                                   
echo "<input type='checkbox' name='vote' value=$i>&nbsp;&nbsp;&nbsp;{$VoteContent[$i]}";
}

解决方案 »

  1.   

    $test='1,2,3,4,5';
    $r=explode(",",$test);   foreach($r as $v)
       {
          echo $v."<br>";
       }
      

  2.   

    $test='1,2,3,4,5';
    $r=explode(",",$test);
    for($i=0;$i<sizeof($r);$i++){
       echo $r[$i]."<BR>";
    }
      

  3.   

    $arr = split("-","1999-07-07");//字符串的分割)
    $num=count($arr)+1;
    for($i=0;$i<=$num;$i++){
    echo "<br>".$arr[$i];

    echo "<br>".$num."<br>";php可以用split()函数
      

  4.   

    谢谢了!
    不过我知道
    Explode比Split执行更快