Home  >  Article  >  Backend Development  >  求大神讲授

求大神讲授

WBOY
WBOYOriginal
2016-06-13 11:32:45734browse

求大神讲解
在if判断在如何知道$flag何时是ture还是false,或者说怎么知道它是真还是假

   $arr=array('中','华','人','民','共','国',);

   for($flag=ture;current($arr);)){
     echo current($arr),'
';
       if($flag){
           next($arr);
           next($arr);
         $flag=flase;
}else{
 
     prev($arr);
     $flag=ture;}

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