web learning

HTML

CSS

PHP

JAVA SCRIPT

AJAX

EBOOKS

PROJECT

FORUM

<?php

    /* array declaration */
    $districts = array("LG" => "Lamjung", "GA" => "Gorkha", "KI" => "Kaski");

    /* display all the districts */
    echo "Display all districts <br />";
   
        foreach ($districts AS $district) {
            echo "{$district}<br />";
        }

    echo "<br /> <br />Display one district <br />";
       
    /* display one*/
    echo $districts["GA"];
?>

Categories:

Leave a Reply