php man page for sqlite_udf_encode_binary

Query: sqlite_udf_encode_binary

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SQLITE_UDF_ENCODE_BINARY(3)											       SQLITE_UDF_ENCODE_BINARY(3)

sqlite_udf_encode_binary - Encode binary data before returning it from an UDF

SYNOPSIS
string sqlite_udf_encode_binary (string $data)
DESCRIPTION
sqlite_udf_encode_binary(3) applies a binary encoding to the $data so that it can be safely returned from queries (since the underlying libsqlite API is not binary safe). If there is a chance that your data might be binary unsafe (e.g.: it contains a NUL byte in the middle rather than at the end, or if it has and 0x01 byte as the first character) then you must call this function to encode the return value from your UDF. PHP does not perform this encode/decode operation automatically as it would severely impact performance if it did. Note Do not use sqlite_escape_string(3) to quote strings returned from UDF's as it will lead to double-quoting of the data. Use sqlite_udf_encode_binary(3) instead!
PARAMETERS
o $data - The string being encoded.
RETURN VALUES
The encoded string.
SEE ALSO
sqlite_udf_decode_binary(3), sqlite_escape_string(3), sqlite_create_function(3), sqlite_create_aggregate(3). PHP Documentation Group SQLITE_UDF_ENCODE_BINARY(3)
Related Man Pages
base64(n) - mojave
base64(n) - suse
mime::quotedprint5.18(3pm) - mojave
sqlite_escape_string(3) - php
sqlite_udf_encode_binary(3) - php
Similar Topics in the Unix Linux Community
binary file
how to check the file data type(ascii or binary)
Split a binary file into 2 basing on 2 delemiter string
A string in a binary file
String manipulation for sheer speed...