Jump to content

How do I call two argumentS?


Monkuar

Recommended Posts

$randompic = $this->randompic();
	if($randompic != TRUE){
		$ranpic_output = $this->html->random_pic($randompic);
	}

		$this->output .= $this->html->cats_header($cattitle,$data['authors'],$data,$data['nick'],$ranpic_output);

 

Ok I need to get $randompic in my  $this->html->cats_header

 

:( How do i do that? i'm calling $ranpic_output too! ?

Link to comment
https://forums.phpfreaks.com/topic/164208-how-do-i-call-two-arguments/
Share on other sites

$randompic = $this->randompic();
	if($randompic != TRUE){
		$ranpic_output = $this->html->random_pic($randompic);
	}

		$this->output .= $this->html->cats_header($cattitle,$data['authors'],$data,$data['nick'],$ranpic_output);

 

Ok I need to get $randompic in my  $this->html->cats_header

 

:( How do i do that? i'm calling $ranpic_output too! ?

Could you show whole class.

This part of code looks confusing.

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.