Should that not be prevented with an is_array() check instead of using an @? Using the @ sounds quite dirty to me. ;)

On 10/4/06, Simon Mundy < [EMAIL PROTECTED]> wrote:
AFAICR this was done because Zend_Input_ has the potential to operate on multidimensional arrays - this is a simple (but not very graceful) way of handling instances where the value is an array rather than a string value.

@ should be avoided unless there is clearly a very good reason. Otherwise we'll not receive those informative errors, and be waylaid in a debugger trying to figure it out. Using @ with preg_* seems odd. Suppression of missing param errors for some reason, maybe?

--

Simon Mundy | Director | PEPTOLAB

""" " "" """""" "" "" """"""" " "" """"" " """"" "  """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124





--
Stefan Koopmanschap
http://www.stefankoopmanschap.nl/
http://www.leftontheweb.com/

Reply via email to