how to write a php for a pizza menu with array $pizzashop = array( array("supreme" 12.95...?

3 Answers

Relevance
  • Anonymous
    6 months ago

    setlocale(LC_MONETARY, "en_US");

    $pizzas = array(array("supreme", 12.95), array("meatlovers", 13.95), array("chicken supreme", 14));

    foreach($pizzas as $pizza) {

    echo $pizza[0] . " - " . money_format("%i", $pizza[1]) . "\n";

    }

    • Login to reply the answers
  • keerok
    Lv 7
    6 months ago

    How? Either you write it yourself because you know how or you pay someone else to do it. Since you asked, I'm guessing you'll be going to the second option.

    • Login to reply the answers
  • Anonymous
    6 months ago

    Pay attention in class and learn to ask your instructor for help. You clearly haven't been listening

    • Login to reply the answers
Still have questions? Get your answers by asking now.