db_encode_blob

Definition

db_encode_blob($data)
includes/database.pgsql.inc, line 210

Description

Returns a properly formatted Binary Large OBject value.

Parameters

$data Data to encode.

Return value

Encoded data.

Related topics

Namesort iconDescription
Database abstraction layerAllow the use of different database servers using the same code base.

Code

<?php
function db_encode_blob($data) {
  return addcslashes($data, "\0..\37\\");
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.