问一个 function 中 if 语句的有关问题,本人初学者一个

WBOY
Release: 2016-06-13 12:31:19
Original
966 people have browsed it

问一个 function 中 if 语句的问题,本人菜鸟一个
如有类似函数,不完整,只是做个举例

function p_abc($a='',$b='',$c=''){
    $a= xxx
    if  ($b='255'){
 $a=xxx+1
}
    $c=yyy

}


  当 $b='255' ,函数能正常运行,当$b 不等于 255的时候, 貌似 $c=yyy 不能执行(我不确定)。导致程序出错。

为什么呢?本人菜鸟一个,好心人告诉一下。

    

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