user3456349
user3456349

Reputation: 95

Multiplying ints on PHP?

I am trying to multiply these two ints together.

        $value = calculateCateringCosts($i, $db);//int 1
        echo "<td>$value * $partySize</td>";

However this is the result I get: 20 * 150

Upvotes: 0

Views: 44

Answers (1)

Arko Elsenaar
Arko Elsenaar

Reputation: 1729

    $value = calculateCateringCosts($i, $db);//int 1
    echo "<td>".($value * $partySize)."</td>";

Upvotes: 3

Related Questions