Jump to content

Recommended Posts

hi guys

 

usename:password

user1:pass1

user2:pass2

user3:pass2

 

 

i have a function fun(username,pass) and i want to run it for lots of different user names and passwords. what would the best way to do this?

 

would i make an array and use a foreach loop or how would i do it and what could would i need??

Link to comment
https://forums.phpfreaks.com/topic/219455-need-some-logic-for-a-simple-problem/
Share on other sites

Having 5 facebook accounts is a violation of facebook's TOS.

 

Even so, "use an array" is the answer.  Specifically, use an array and a loop.

 

If you need more than that, "learn how to program" is good advice.  There are plenty of threads on how to do that.

 

-Dan

Have you tried that?  Add output to your script so you know it's working right. Then run it, and see if the output is what you expect.  You don't need us to tell you if PHP will run a script properly, that's why you have the PHP interpreter.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.