For example:
$result = func(14);
The $result should be:
array(1,1,1,0)
How to implement this func?
decbin would produce a string binary string:
echo decbin(14); # outputs "1110"
array_map('intval', str_split(decbin(14))) # acomplishes the full conversion