Jump to content

.Ben

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Posts posted by .Ben

  1. Hello,

     

    I realized that you have made a mistake on the PHP code on the Arrays lesson. http://www.phpfreaks.com/tutorials/42/1.php

     

    On this code example:

     

    <?php
    $bakery = array(
        "cherry" => "5.00",
        "apple" => "4.00",
        "other" => "2.00",
    );
    echo "cherry pie costs $bakery['cherry'], apple pie costs $bakery['apple'], and that other pie costs $bakery['other'].";
    ?>

     

    Correction:

     

    <?php
    $bakery = array(
        "cherry" => "5.00",
        "apple" => "4.00",
        "other" => "2.00",
    );
    echo "cherry pie costs ".$bakery['cherry'].", apple pie costs ".$bakery['apple'].", and that other pie costs ".$bakery['other'].".";
    ?> 

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.