Re: Array_Walk error messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Thus wrote Stuart Felenstein:
> Can anyone give me a clue what I have done wrong here.
> 
> //These would be passed as ints:
> array_walk($l_industry, 'mysql_escape_string');
> Warning: Wrong parameter count for
> mysql_escape_string() in
> /xxx/xxxx/public_html/Test2.php on line 104
> 

The callback function form array_walk expects to parameters:
  callback($key, $value);

But mysql_escape_string() only takes one.

As suggested earlier, use array_map() instead.


Curt
-- 
Quoth the Raven, "Nevermore."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux