// this function should take a function as an argument.
function function1($function){
$var = $function(1);
$var = $function($var);
$var = $function($var);
return $var;
}
// this function should take a variable as an argument
function function2($variable){
return $variable+1;
}
// now how do i pass function2() into function1() ??
// in PHP4 this will pass the result of function1() into function2():
// i DONT want to do that.
// note: in PHP5 this will produce an error because im guessing it doesnt know if you want to pass the result of function1() into function2() or if you want to pass a reference of function1() itself into function2().
echo function2(function1(1));