Re: [PHP] Uninitialized string offset: 0

2007-01-06 Thread Albert Padley
Ah, of course. Thanks. Al On Jan 6, 2007, at 12:57 PM, Robert Cummings wrote: On Sat, 2007-01-06 at 12:43 -0700, Albert Padley wrote: Sure. $myFilter = new InputFilter('','',0,0); The first two parameters should be arrays (not strings as you have above). Cheers, Rob. -- .---

Re: [PHP] Uninitialized string offset: 0

2007-01-06 Thread Robert Cummings
On Sat, 2007-01-06 at 12:43 -0700, Albert Padley wrote: > Sure. > > $myFilter = new InputFilter('','',0,0); The first two parameters should be arrays (not strings as you have above). Cheers, Rob. -- .. | InterJinn Application Framework

Re: [PHP] Uninitialized string offset: 0

2007-01-06 Thread Albert Padley
Sure. $myFilter = new InputFilter('','',0,0); $_POST = $myFilter->process($_POST); BTW - for what I'm trying to do at the moment, if I change the first line to: $myFilter = new InputFilter(); it takes care of the Notice problem. Thanks. Al On Jan 6, 2007, at 12:36 PM, Dave Goodchild wrot

Re: [PHP] Uninitialized string offset: 0

2007-01-06 Thread Dave Goodchild
Can you show us what you're calling it with? Al Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- http://www.web-buddha.co.uk

[PHP] Uninitialized string offset: 0

2007-01-06 Thread Albert Padley
I have the following class that generates a Notice: Uninitialized string offset: 0 each time it is called. The lines generating the notice are marked. How do I fix this? class InputFilter { var $tagsArray; var $attrArray; var $tagsMethod; var $attrMethod;