Posted by Toby Inkster on 05/21/06 13:52
bellefy@gmail.com wrote: > $r = ($v && ($v) == 0 ? true : false); Better: $r = (($v & ($v-1)) == 0); NEVER code '?true:false' (or the opposite). -- Toby A Inkster BSc (Hons) ARCS Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming