嗯.像中奖同样的中bug

WBOY
Release: 2016-06-13 10:50:42
Original
906 people have browsed it

嗯...像中奖一样的中bug?

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->var_dump($sumArr['TRADE_CLOSED']);$sumValue = array_sum($sumArr);var_dump($sumArr);var_dump($sumArr['TRADE_CLOSED']);
Copy after login


结果:
int 3
array (size=4)
  'WAIT_SELLER_SEND_GOODS' => int 8
  'WAIT_BUYER_CONFIRM_GOODS' => int 37
  'WAIT_BUYER_PAY' => int 2
  'TRADE_CLOSED' => &int 50
int 50

这是人品?这是bug?这是你妹的什么问题?

我单独用个临时文件重新写了一小段代码测试 却又输出正常...


------解决方案--------------------
你那TRADE_CLOSED为啥是个引用啊?
------解决方案--------------------
PHP code
$sumArr=Array('WAIT_SELLER_SEND_GOODS'=>8,'WAIT_BUYER_CONFIRM_GOODS' =>37,'WAIT_BUYER_PAY' =>2,'TRADE_CLOSED'=>50,);var_dump($sumArr['TRADE_CLOSED']);$sumValue = array_sum($sumArr);var_dump($sumArr);var_dump($sumArr['TRADE_CLOSED']);<br><font color="#e78608">------解决方案--------------------</font><br>
Copy after login
PHP code
<?php $aa=3;$sumArr=Array('WAIT_SELLER_SEND_GOODS'=>8,'WAIT_BUYER_CONFIRM_GOODS' =>37,'WAIT_BUYER_PAY' =>2,'TRADE_CLOSED'=>&$aa,);var_dump($sumArr['TRADE_CLOSED']);$sumValue = array_sum($sumArr);var_dump($sumArr);var_dump($sumArr['TRADE_CLOSED']);<div class="clear">
                 
              
              
        
            </div>
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