[eluser]Fantass[/eluser]
Hello!, well this is quick question but i dont have a clue how to solve
i want to do the next (example)
Code:
<?
class some extends CI_Class{
function index()
{
$variable = 'hello world'; //some X variable
$variabletopass = $variable; //the variable that i need to pass through.
}
function misc()
{
$some = $this->index($variabletopass); //this is what im trying but i dont get nothing
var_dump($some);
}
}
OUTPUT = undefined variable. Boolean Null.
I hope someone could help me thanks alooot!!
Best regards