AlionSolutions
November 24th, 2004, 03:26 PM
Hi again,
I am totally fed up by a syntax-problem I am not able to get around:
Let's say, I have a class like this:
class myclass
{
var $arr = array(//SOME ARRAY INITS HERE);
function format($item,$key){// to be done}
function generate()
{
// HERE IS THE PLACE FOR A ARRAY_WALK CALL
// WHICH SHOULD CALL THE CLASS-FUNCTION format.
}
}
Ok, my question is, how is the correct syntax for the mentioned array_walk-call ? I tried several things but got errors each time. The problem is the user-function-parameter.
To describe it in short one more time: How is the syntax of a array_walk-call inside the classes generate function. Especially, how is the syntax for the user-fuction-parameter. It would be easy if this user function was no class member function.
Thanx in advance
alionsonny
I am totally fed up by a syntax-problem I am not able to get around:
Let's say, I have a class like this:
class myclass
{
var $arr = array(//SOME ARRAY INITS HERE);
function format($item,$key){// to be done}
function generate()
{
// HERE IS THE PLACE FOR A ARRAY_WALK CALL
// WHICH SHOULD CALL THE CLASS-FUNCTION format.
}
}
Ok, my question is, how is the correct syntax for the mentioned array_walk-call ? I tried several things but got errors each time. The problem is the user-function-parameter.
To describe it in short one more time: How is the syntax of a array_walk-call inside the classes generate function. Especially, how is the syntax for the user-fuction-parameter. It would be easy if this user function was no class member function.
Thanx in advance
alionsonny