2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * @package phpMyAdmin-Transformation
11 function PMA_transformation_application_octetstream__hex($buffer, $options = array(), $meta = '') {
12 // possibly use a global transform and feed it with special options:
13 // include './libraries/transformations/global.inc.php';
14 if (!isset($options[0])) {
17 $options[0] = (int)$options[0];
20 if ($options[0] < 1) {
21 return bin2hex($buffer);
23 return chunk_split(bin2hex($buffer), $options[0], ' ');