Re: [PHP] array_walk inside class method

2002-01-22 Thread S. Murali Krishna


Dear Gyozo

You have sent me the following solution thru php mailing list.
I have also asked you a doubt  about the syntax.

I  want to explain this syntax to my colleagues, could
u
pls point me to any documentation of this syntax or any article.

if possible pls explain yourself if u have time.

It is urgent . pls 


Thanks in Advance

On Mon, 7 Jan 2002, S. Murali Krishna wrote:

 Hi
   Thanks for ur help. 
   Its Working but I couldn't understand the syntax given by u
   can u explain pls.
 
 Thanks again.
 
 
 On Sun, 6 Jan 2002, Gyozo Papp wrote:
 
  it may be better:
  
  array_walk($this-array, array($this, 'func1');
  
  | 
  | 
  |  Hi All,
  |  I want to use array_walk function inside a class method. But the
  |  problem is i want the second argument to array_walk ( function name )
  |  be a another function of the same class. when i gave like that its telling
  | 
  |  Error : function not exist.
  | 
  |  class some()
  |  {
  | 
  |  function func1()
  |  {
  |  }
  |  function func2()
  |  {
  |  array_walk($array,func1);
  |  }
  |  }
  | 
  |  What is the syntax or way to do this.
  | 
  | 
  |  Thanks in Advance.
  | 
  |  S.Murali Krishna
  |  [EMAIL PROTECTED]
  |  =
  |  We grow slow trying to be great
  | 
  | - E. Stanley Jones
  |  -
  | 
  | 
  |  --
  |  PHP General Mailing List (http://www.php.net/)
  |  To unsubscribe, e-mail: [EMAIL PROTECTED]
  |  For additional commands, e-mail: [EMAIL PROTECTED]
  |  To contact the list administrators, e-mail: [EMAIL PROTECTED]
  | 
  | 
  
 
 S.Murali Krishna
 [EMAIL PROTECTED]  
 = 
 We grow slow trying to be great
   
  - E. Stanley Jones
 -
 
 

S.Murali Krishna
[EMAIL PROTECTED]  
= 
We grow slow trying to be great

   - E. Stanley Jones
-


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] array_walk inside class method

2002-01-07 Thread S. Murali Krishna

Hi
Thanks for ur help. 
Its Working but I couldn't understand the syntax given by u
can u explain pls.

Thanks again.


On Sun, 6 Jan 2002, Gyozo Papp wrote:

 it may be better:
 
 array_walk($this-array, array($this, 'func1');
 
 Attila Strauss [EMAIL PROTECTED] wrote in message 
001d01c195db$67647da0$[EMAIL PROTECTED]">news:001d01c195db$67647da0$[EMAIL PROTECTED]...
 | hi
 | 
 | $this-func1();
 | 
 | 
 | best regards
 | attila
 | 
 | 
 | 
 | 
 |  Hi All,
 |  I want to use array_walk function inside a class method. But the
 |  problem is i want the second argument to array_walk ( function name )
 |  be a another function of the same class. when i gave like that its telling
 | 
 |  Error : function not exist.
 | 
 |  class some()
 |  {
 | 
 |  function func1()
 |  {
 |  }
 |  function func2()
 |  {
 |  array_walk($array,func1);
 |  }
 |  }
 | 
 |  What is the syntax or way to do this.
 | 
 | 
 |  Thanks in Advance.
 | 
 |  S.Murali Krishna
 |  [EMAIL PROTECTED]
 |  =
 |  We grow slow trying to be great
 | 
 | - E. Stanley Jones
 |  -
 | 
 | 
 |  --
 |  PHP General Mailing List (http://www.php.net/)
 |  To unsubscribe, e-mail: [EMAIL PROTECTED]
 |  For additional commands, e-mail: [EMAIL PROTECTED]
 |  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 | 
 | 
 

S.Murali Krishna
[EMAIL PROTECTED]  
= 
We grow slow trying to be great

   - E. Stanley Jones
-


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] array_walk inside class method

2002-01-05 Thread S. Murali Krishna



Hi All,
I want to use array_walk function inside a class method. But the 
problem is i want the second argument to array_walk ( function name )
be a another function of the same class. when i gave like that its telling

Error : function not exist.

class some()
{

function func1()
{
}
function func2()
{
array_walk($array,func1);
}
}

What is the syntax or way to do this.


Thanks in Advance.

S.Murali Krishna
[EMAIL PROTECTED]  
= 
We grow slow trying to be great

   - E. Stanley Jones
-


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] array_walk inside class method

2002-01-05 Thread Attila Strauss

hi

$this-func1();


best regards
attila




 Hi All,
 I want to use array_walk function inside a class method. But the
 problem is i want the second argument to array_walk ( function name )
 be a another function of the same class. when i gave like that its telling

 Error : function not exist.

 class some()
 {

 function func1()
 {
 }
 function func2()
 {
 array_walk($array,func1);
 }
 }

 What is the syntax or way to do this.


 Thanks in Advance.

 S.Murali Krishna
 [EMAIL PROTECTED]
 =
 We grow slow trying to be great

- E. Stanley Jones
 -


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] array_walk inside class method

2002-01-05 Thread Gyozo Papp

it may be better:

array_walk($this-array, array($this, 'func1');

Attila Strauss [EMAIL PROTECTED] wrote in message 
001d01c195db$67647da0$[EMAIL PROTECTED]">news:001d01c195db$67647da0$[EMAIL PROTECTED]...
| hi
| 
| $this-func1();
| 
| 
| best regards
| attila
| 
| 
| 
| 
|  Hi All,
|  I want to use array_walk function inside a class method. But the
|  problem is i want the second argument to array_walk ( function name )
|  be a another function of the same class. when i gave like that its telling
| 
|  Error : function not exist.
| 
|  class some()
|  {
| 
|  function func1()
|  {
|  }
|  function func2()
|  {
|  array_walk($array,func1);
|  }
|  }
| 
|  What is the syntax or way to do this.
| 
| 
|  Thanks in Advance.
| 
|  S.Murali Krishna
|  [EMAIL PROTECTED]
|  =
|  We grow slow trying to be great
| 
| - E. Stanley Jones
|  -
| 
| 
|  --
|  PHP General Mailing List (http://www.php.net/)
|  To unsubscribe, e-mail: [EMAIL PROTECTED]
|  For additional commands, e-mail: [EMAIL PROTECTED]
|  To contact the list administrators, e-mail: [EMAIL PROTECTED]
| 
|