function wantedBanner($name, $items) { echo "Wanted: " . $name . "<br>"; echo "Known to be in possession of the following items: <br>"; echo "Specs (" . $items[0] . ") <br>"; echo "Mugs (" . $items[1] . ") <br>"; echo "Sausage rolls (" . $items[2] . ") <br>"; echo "Award for capture: \$" . awardForCapture($items); }
function printWantedBanner($name, $specsOwned, $mugsOwned, $sausageRollsOwned) { echo "<p><strong>Wanted:</strong> " . $name . "</p>"; echo "<p>Known to be in posession of:</p>"; echo "<p>Specs: " . $specsOwned . "</p>"; echo "<p>Mugs:" . $mugsOwned . "</p>"; echo "<p>Sausage Rolls: " . $sausageRollsOwned . "</p>"; echo "<p>Award for capture: £" . awardForCapture($specsOwned, $mugsOwned, $sausageRollsOwned) . "</p><br><br>"; }