You are here

public function EasyRdf_Literal_HexBinary::toBinary in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/HexBinary.php \EasyRdf_Literal_HexBinary::toBinary()

Decode the hexadecimal string into a binary blob

Return value

string The binary blob

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/HexBinary.php, line 85

Class

EasyRdf_Literal_HexBinary
Class that represents an RDF Literal of datatype xsd:hexBinary

Code

public function toBinary() {
  return pack("H*", $this->value);
}