Posted by Steve on 04/20/07 12:32
| function validateInput(&$value, $key, $errs) | { | $maxValue = 999; | if ($value <= $maxValue) return; | $errs[0][$key] = "message..."; | } | | array_walk($numbers, 'validateInput', array(&$errors)); | print_r($errors); beautiful...i check it. i wonder why it has to be that way instead of just passing $errors in?
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming