SHARING MY KNOWLEDGE
<?php $array = array ("Fruit" => "Apple", "Animal" => "Dog", "Number" => 1, "Name" => "Jhon" ); foreach($array as $key => $value) { echo $key.': '.$value; echo '<br />'; } /* result Fruit: Apple Animal: Dog Number: 1 Name: Jhon */ ?>
No comments:
Post a Comment