RE: [PHP] Array_keys problem

2004-04-06 Thread Ford, Mike [LSS]
On 04 April 2004 01:13, Robin 'Sparky' Kopetzky wrote: function key_exists($ps_key) { if ( in_array($ps_key, array_keys($this-ma_arguments)) ) { return true; } else { return false; } } Ummm -- function

Re: [PHP] Array_keys problem

2004-04-04 Thread Burhan Khalid
Robin 'Sparky' Kopetzky wrote: Good afternoon. I'm building a class and am having a bunch of trouble with the PHP array_keys function. I keep getting these errors: Warning: First argument to array_keys() should be an array in D:\Htf.php on line 33 Warning: Wrong datatype for second argument in

[PHP] Array_keys problem

2004-04-03 Thread Robin 'Sparky' Kopetzky
Good afternoon. I'm building a class and am having a bunch of trouble with the PHP array_keys function. I keep getting these errors: Warning: First argument to array_keys() should be an array in D:\Htf.php on line 33 Warning: Wrong datatype for second argument in call to in_array in D:\Htf.php