How to make a PHP function work inside a CodeIgniter function -


i have codeigniter function , inside have php function. can't php function work. please see code below. parameter of acmazdami($parameter) function array. maybe that. can help. best regards , thank in advance...

  public function pozisyon_tutma() {// ci function     function acmazdami($parametre){//php function inside ci function     $dizi = array();     $dizi = $parametre;     print_r(array_values($dizi))."<br>";     echo "tamamdır <br>";   } 

the code sends array php function. inside same above mentioned ci function:

} else {     echo "... kontrol...<br>";     echo $aday_tas."<br> code has read until here";     acmazdami(array ($vezir_yerleri)); } 

the code doesn't give errors can't line

print_r(array_values($dizi))."<br>"; 

to work. regards...

in controller call method in same class $this->yourmethod don't write method inside other method

public function_1()// ci function {   //   } public function_2()//ci function {       $this->function_1() // access function_1  } 

Comments