影响运算符

时间:2015-12-16 11:05:50

标签: php variable-assignment assignment-operator

我想做一个作业,但它总是显示我int(0):

String.matches

这是我的代码:

$multiple =  $multiple + ($V['V1'] * $V['V2']); ==> int(0)

感谢。

1 个答案:

答案 0 :(得分:0)

<?php

    $V['V1'] = 10;
    $V['V2'] = 20;

    @$multiple =  $multiple + ($V['V1'] * $V['V2']);

?>