1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP n00b, trying to learn.

Discussion in 'PHP' started by Whitey, Oct 28, 2007.

  1. #1
    Im trying to learn a bit of PHP and I want to make a very small script where you define some sentances and then use a PHP function to randomize them and output them.

    If my sentances were:

    Hello, how are you?
    Im fine thanks.
    So, what you doing?

    I would define them as something like $sentance1, $sentance2 ect.

    I just need the name of a PHP function that will randomize a series of variables and then output ONE of them. I can do the rest on my own, but I just need the name of that function. Cheers:)
    SEMrush
     
    Whitey, Oct 28, 2007 IP
    SEMrush
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    nico_swd, Oct 28, 2007 IP
  3. Whitey

    Whitey Active Member

    Messages:
    1,386
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Thanks very much :)
     
    Whitey, Oct 28, 2007 IP