Warning: A non-numeric value encountered

后端 未结 18 1861
抹茶落季
抹茶落季 2020-11-22 06:15

Recently updated to PHP 7.1 and start getting following error

Warning: A non-numeric value encountered in on line 29

Here is wha

18条回答
  •  梦如初夏
    2020-11-22 06:29

    in PHP if you use + for concatenation you will end up with this error. In php + is a arithmetic operator. https://www.php.net/manual/en/language.operators.arithmetic.php

    wrong use of + operator:

                ""+
                "'"+                 
                "
    ";

    use . for concatenation

    $output = "
    ". "". "'". "
    ";

提交回复
热议问题