请教php代码间的跳转函数有没有?不是页面间的跳转

WBOY
Release: 2016-06-13 12:15:40
Original
867 people have browsed it

请问php代码间的跳转函数有没有??不是页面间的跳转
请问php代码间的跳转函数有没有??不是页面间的跳转

比如:

$str="";  
$a=array(1,2,3,4,5,6);
$b=array(1,4,3,4,5,6);
$i=0;
foreach($a as $value){
    if($a[$i]       //如果条件满足,退出循环,直接执行最后的输出"数据有问题 ";
    }else{
      $str="aaaa=".$a[$i];  
    }
$i++;
}
  
echo "数据有问题";
------解决思路----------------------

<br />...<br />if($a[$i]<$b[$i]){<br />       echo "数据有问题";//如果条件满足,退出循环,直接执行最后的输出"数据有问题 ";<br />       exit();<br />    }<br />...<br />
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