Re: Form Validation Issues

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

 



On Thu, 2007-05-24 at 17:58 -0500, Richard Lynch wrote:
> 
> On Wed, May 23, 2007 10:48 am, Robert Cummings wrote:
> > On Wed, 2007-05-23 at 10:10 -0500, Greg Donald wrote:
> >> On 5/23/07, kvigor <k3cheese@xxxxxxxxxxxxx> wrote:
> >> > [-- SNIPPITY SNIP SNIP --]
> >> > != 'Texas' || $value!= 'TX' || $value != 'Utah' || $value!= 'UT'
> >> || $value
> >> > != 'Vermont' || $value!= 'VT' || $value != 'Virginia' || $value!=
> >> 'VA' ||
> >> > $value != 'Washington' || $value!= 'WA' || $value != 'West
> >> Virginia'
> >> > ||$value!= 'WV' || $value != 'Wisconsin' || $value!= 'WI' ||
> >> $value !=
> >> > 'Wyoming' || $value!= 'WY') //if they don't the match these
> >>
> >> You should really look into learning in_array() for stuff like this.
> >
> > Wouldn't that slow things down and increase the memory footprint? ;)
> 
> Not in any meaningful way.
> 
> And a huge gain in maintainability/readability for a meaningless loss
> in performance is a "win"

*lol* You must have missed the other thread... hence the wink on the
end :)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
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