Using <pre> bgcolor =

 "My House",
        "2nd" => "My Car",
        "3rd" => "My Lab"
    );

    foreach ($array as $key => $value) {

        if ($value == "My Lab") {
            $array[$key] = $value = "My Laboratory";
        }

        print "$key holds the value $value \n";
    }

    ?>