Jump to content

need some logic for a simple problem


kevinkhan

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.

Archived

This topic is now archived and is closed to further replies.

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