Jump to content

Methods Variables


GD77

Recommended Posts

Hello:

Any suggestions how to use all variables of a methods inside an array to apply another method on each one?

 


fuction fn0(){....}//end fn0

function fn1($x1,$x2,$x3,$x4){

$mAr=array($x1,$x2,$x3,$x4);

foreach($mAr as $val){

$this->fn0($val);

}//end foreach

}//end fn1

 

In reality I have like $x12.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/271629-methods-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.