src/CFPropertyList/CFBinaryPropertyList.php
public function boolToBinary($val)
    {
        $saved_object_count = $this->writtenObjectCount++;
        $this->objectTable[$saved_object_count] = $val ? "\x9" : "\x8"; // 0x9 is 1001, type indicator for true; 0x8 is 1000, type indicator for false
        return $saved_object_count;
    }
public function boolToBinary($val)
    {
        $saved_object_count = $this->writtenObjectCount++;
        $this->objectTable[$saved_object_count] = $val ? "\x9" : "\x8"; // 0x9 is 1001, type indicator for true; 0x8 is 1000, type indicator for false
        return $saved_object_count;
    }
public function boolToBinary ( $ val ) { $ saved_object_count = $ this -> writtenObjectCount ++ ; $ this -> objectTable [ $ saved_object_count ] = $ val ? "\x9" : "\x8" ; // 0x9 is 1001, type indicator for true; 0x8 is 1000, type indicator for false return $ saved_object_count ; }
Convert a bool value to binary and add it to the object table
@param bool $val The boolean value
@return integer The position in the object table
Convert a bool value to binary and add it to the object table