Quantcast
Channel: PHP – dredgin.gs
Viewing all articles
Browse latest Browse all 10

PHP function to parse out an integer into its component bits

$
0
0
A single integer is a great way to save data for options that are either/or, like whether a particular checkbox should be selected within an array of checkboxes. There are a lot of advantages, including a small database footprint (a single int instead of perhaps a comma-separated list-string), and really fast execution based on bit …

Viewing all articles
Browse latest Browse all 10

Trending Articles