Re: [PHP] array_map() problems

2005-02-07 Thread Jeffery Fernandez
Guillermo Rauch wrote: Hi Jeffery, To use a class method as a valid callback, you should pass an array like $_POST = array_map(array($this, 'StripSlashesDeep'), $_POST); Hope this helps, -Guillermo Ah thanks Guillermo, I just about figured it out when you posted. It works now :-) cheers, Jeffe

Re: [PHP] array_map() problems

2005-02-07 Thread Guillermo Rauch
Hi Jeffery, To use a class method as a valid callback, you should pass an array like $_POST = array_map(array($this, 'StripSlashesDeep'), $_POST); Hope this helps, -Guillermo On Mon, 7 Feb 2005 17:10:32 -0600, Greg Donald <[EMAIL PROTECTED]> wrote: > On Tue, 08 Feb 2005 09:37:11 +1100, Jeffery

Re: [PHP] array_map() problems

2005-02-07 Thread Greg Donald
On Tue, 08 Feb 2005 09:37:11 +1100, Jeffery Fernandez <[EMAIL PROTECTED]> wrote: > I have the following 2 functions which I intend to clean GPC off slashes > if magic_quotes_gpc is turned on. > > function StripGpcSlashes() > { > if (get_magic_quotes_gpc()) > { > $_POST = array_ma

[PHP] array_map() problems

2005-02-07 Thread Jeffery Fernandez
I have the following 2 functions which I intend to clean GPC off slashes if magic_quotes_gpc is turned on. function StripGpcSlashes() { if (get_magic_quotes_gpc()) { $_POST = array_map('StripSlashesDeep', $_POST); $_GET = array_map('StripSlashesDeep', $_GET); $_COOKIE = arr