Predict the output of the following PHP code segment.
function cost($price, $quantity) {
$price *= 1.20;
echo "cost is " . ($price * $quantity +
0.8) . "<br />";
}
$x = 2; $y = 3;
cost($y, $x);
Predict the output of the following PHP code segment. function cost($price, $quantity) { $price *= 1.20; e
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Predict the output of the following PHP code segment. function cost($price, $quantity) { $price *= 1.20; e
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!