Jump to content

[SOLVED] Looping function variables


Foser

Recommended Posts

I am wondering how to do this.

 

I want to have a function which could have 3 variables, 5 or whatever number of variables. I want it to do all the same thing for each, how could a loop like this be done to check all variables that were set to the function eg. function NumberVariables($var, $var2, $var3);

I want a loop which will due a code for all 3 but this function could also be used for any other number.

Link to comment
https://forums.phpfreaks.com/topic/85474-solved-looping-function-variables/
Share on other sites

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.