[TYPO3-dev] Get value bits from checkbox array

Stefan Frömken firma at sfroemken.de
Mon Jun 14 12:46:00 CEST 2010


Steffen Kamper schrieb:
> Hi,
> 
> 
> in TCEforms this is done in function checkBoxParams beside other things. 
> Imho there should be something for bit calculating in t3lib_div, but 
> it's missing.
> 
> vg Steffen

Thank you Steffen,

I think that should work:

if($thisValue&pow(2,$c))...

Stefan




More information about the TYPO3-dev mailing list