Home  >  Article  >  Backend Development  >  问一个 function 中 if 语句的有关问题,本人初学者一个

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

WBOY
WBOYOriginal
2016-06-13 12:31:19863browse

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

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

}


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

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

    

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