LdapTools\Security\GUID::toBinary PHP Method

toBinary() public method

Get the binary representation of the GUID string.
public toBinary ( ) : string
return string
    public function toBinary()
    {
        $data = '';
        $guid = str_replace('-', '', $this->guid);
        foreach ($this->octetSections as $section) {
            $data .= $this->parseSection($guid, $section, true);
        }
        return hex2bin($data);
    }