Jump to content

Loop question


Recommended Posts

hi all, Im a bit stumped on how id go about doing such thing like:

i have an ini file with saved text

[name]

name1=bob

name2=jones

name3=Richard

i know how to go about reading them but

how do i create 1 loop that starts with what bob needs then loop ends then reloops with what jones needs and same with Richard

just a small example would be nice please :)

Edited by Skidzhard
Link to comment
Share on other sites

Not going to spoon feed you any code. 

1.  Show us what you've done.

2.  Look into arrays.  You can put a loop variable into an array variable's index....

For $x = 1 to 20
   $array[$x] = SomeData($x)
Next

3.  IniRead()

4.  Read the help file.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...