Jump to content

ArnauDuran

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ArnauDuran's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well, I got it, thanks! (I used explode() function)
  2. Hello people, I'm developing something in PHP and I have a question. I have an archive named [i]names.txt[/i], with four lines: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Michael Daniel Jacques David[/quote] And I want to get a random name. I know how to open the file, and how to generate numbers, but, if, for example, I get number 3, I'd like the program to print 'Jacques', or if I get number 1, print 'Michael'. So, with fgets, how can I read the line I want? Many thanks, and I apologise for my english... :) Greetings from Girona, Spain
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.