求大神讲授

WBOY
Release: 2016-06-13 11:32:45
Original
731 people have browsed it

求大神讲解
在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;}

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