I have this in my PHP file where I use it
PHP Code:
var $parsingLookup = array(
'html' => 1,
'smilies' => 2,
'bbcode' => 4,
'images' => 8,
'lines' => 16
);
PHP Code:
$entryParsing = convert_bits_to_array($blog->option('parse_entry'), $blog->parsingLookup);
PHP Code:
$entry['body'] = $parser->do_parse($entry['body'],
$entryParsing['html'],
$entryParsing['smilies'],
$entryParsing['bbcode'],
$entryParsing['images'],
$entryParsing['lines'],
false
);
^ an example
For the values, go up by multiples of two (binary!), then make sure the values you use matchup with an array (in my case, $blog->parsingLookup).