src/CFPropertyList/CFBinaryPropertyList.php
public function numToBinary($value)
    {
        $saved_object_count = $this->writtenObjectCount++;

        $val = "";
        if (intval($value) == $value && !is_float($value) && strpos($value, '.') === false) {
            $val = $this->intToBinary($value);
        } else {
            $val = $this->realToBinary($value);
        }

        $this->objectTable[$saved_object_count] = $val;
        return $saved_object_count;
    }
public function numToBinary($value)
    {
        $saved_object_count = $this->writtenObjectCount++;

        $val = "";
        if (intval($value) == $value && !is_float($value) && strpos($value, '.') === false) {
            $val = $this->intToBinary($value);
        } else {
            $val = $this->realToBinary($value);
        }

        $this->objectTable[$saved_object_count] = $val;
        return $saved_object_count;
    }
public function numToBinary ( $ value ) { $ saved_object_count = $ this -> writtenObjectCount ++ ; $ val = "" ; if ( intval ( $ value ) == $ value && ! is_float ( $ value ) && strpos ( $ value , '.' ) === false ) { $ val = $ this -> intToBinary ( $ value ) ; } else { $ val = $ this -> realToBinary ( $ value ) ; } $ this -> objectTable [ $ saved_object_count ] = $ val ; return $ saved_object_count ; }
Converts a numeric value to binary and adds it to the object table
@param numeric $value The numeric value
@return integer The position in the object table
Converts a numeric value to binary and adds it to the object table