1. I've started a massive SPAM purge, any accounts that have spammed are being removed, also for a short period new user signups are disallowed until the SPAM cleaning is finished.

PHP Basics-11 Easy Steps

Discussion in 'PHP' started by midlandi, Nov 18, 2007.

  1. aafgift

    aafgift New Member

    Joined:
    Sep 21, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Location:
    Dubai
    Hi,

    How can we Fill an array with values, specifying keys?

    example--


    <?php
    $aafgift=array("a","b","c","d");
    $aafgift1=array_fill_keys($aafgift,"blue");
    echo "<pre>";
    print_r($aafgift1);
    ?>

    output:

    Array
    (
    [a] => blue
    => blue
    [c] => blue
    [d] => blue
    )
  2. lila9652012

    lila9652012 New Member

    Joined:
    Oct 23, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Female
    I learn a lot from this post...
  3. heatherIDD

    heatherIDD New Member

    Joined:
    Jan 25, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Female
    These threads are useful. However, in my case tried to learn the basics in PHP at thenewboston(dot)org. I find the guys right there very helpful and at the same time funny. I am now learning how to code using the MVC Framework.
  4. sanamgupta

    sanamgupta New Member

    Joined:
    Nov 7, 2014
    Messages:
    22
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Female
    thanks for telling us the the 11 basic steps of PHP :)

Share This Page