Results 21 to 27 of 27

Thread: Day 6 - Associative Array - Become PHP Expert in 30 days

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Jan 2008
    Location
    india,kerala-god's own country
    Posts
    14,007

    Default

    DAY 6 PHP PROGRAMMING - MY 1'st CODE

    http://php.flashwebhost.com/ramesh/day-6/day-6_1.php

    PHP Code:
    <?php

    $teamindia 
    = array();

    $playername['name'] = 'Sourav Ganguly';
    $playername['price'] = 90000000;
    $playername['iconic player'] = 'yes';
    $playername['formats of cricket'] = 'Twenty20';
    $playername['team'] = 'Kolkata Knight Riders';
    $playername['player type'] = 'Batsman';

    echo 
    '<pre>';
    print_r($playername);
    echo 
    '</pre>';

    echo (
    '<font color=green><h1>About the IPL player</h1></font>');
    echo 
    '<b>Name:</b> '  $playername['name']  . '<br>';
    echo 
    '<b>Price Paid:</b> Rs: '  $playername['price']  . '/-<br>';
    echo 
    '<b>Team:</b> '  $playername['team']  . '<br>';
    echo 
    '<b>Player Type:</b> '  $playername['player type']  . '<br>';
    echo 
    '<b>Iconic Player:</b> '  $playername['iconic player']  . '<br>';
    echo 
    '<b>Formats of Cricket:</b> '  $playername['formats of cricket']  . '<br>';
    Last edited by rameshxavier; 05-24-2014 at 09:34 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •