! = Isn't this an inequality symbol? Why multiplication
whxn
whxn 2019-05-24 12:17:50
0
7
1943

$sum=1;
     for($i=1;$i<=$name;$i ){
      $sum*=$name[$i];
     echo "{$sname} != {$sum}"; 

提示错误?

whxn
whxn

reply all(6)
V

! =If you put it in double quotes, wouldn't it just be a string?

whxn

The cause of the error has been solved and now I understand! = has no specific meaning, just a symbol

她说

The reason for the error is that the braces after the for loop do not match

whxn

That's right

她说

That's not a factorial, it's a statement from echo, so it looks like a factorial after it's output.

血脉仙境

var_dump()Try

  • reply I just don’t understand! = This is not equal. Why can it be used for multiplication operations?
    whxn author 2019-05-24 20:55:30
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template