|
Posted by gosha bine on 04/20/07 14:12
On 20.04.2007 15:20 Steve wrote:
> | function validateInput(&$value, $key, $errs)
> | {
> | $maxValue = 999;
> | if ($value <= $maxValue) return;
> | $errs[0][$key] = "message...";
> | }
> |
> | array_walk($numbers, 'validateInput', array(&$errors));
> | print_r($errors);
>
> doesn't work on my machine (php 5.1.6)
>
>
works for me in php4.3 and 5.2. Make sure you're doing everything right.
--
gosha bine
extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
Navigation:
[Reply to this message]
|