Saturday 7 July 2018

Associate Array in PHP

<?php
$students = array();
$students[0] = array(
            'name' => 'Rahul',
            'course' => 'Dimplma in IT',
            'email' => "rahul@zixana.com"
            );

$students[1] = array(
            'name' => 'Priya',
            'course' => 'Dimplma in IT',
            'email' => "priya@zixana.com"
            );

foreach ($students as $key => $value) {
    echo $value['name'].' is enroled in '. $value['course'].' and has email id is '. $value['email'].'.';
    echo "<br>";
}

3 comments:

  1. Cloudi5 is the web design company in coimbatore. Building responsive websites according to the google recent updates. Cloudi5 offering digital marketing, Search engine optimization, Social media marketing, Landing page optimization, website redesign, web design, website maintaining, web development, creative app creation, School management software OR School ERP software, Google ads, banner designing, etc,

    ReplyDelete
  2. I really appreciate your work which you have shared here about the clinical research associate. The article you have shared here is very informative and the points you have mentioned are very helpful. Thank you so much.clinical research associate ontario

    ReplyDelete
  3. I am very thankful to you that you have shared this information with us. I got some different kind of knowledge from your web page, and it is really helpful for everyone. Thanks for share it. Patente Europea del Computer ECDL a Chieti Regione Abruzzo

    ReplyDelete