2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * @package PhpMyAdmin-Transformation
7 function PMA_transformation_application_octetstream__hex_info()
10 'info' => __('Displays hexadecimal representation of data. Optional first parameter specifies how often space will be added (defaults to 2 nibbles).'),
17 function PMA_transformation_application_octetstream__hex($buffer, $options = array(), $meta = '')
19 // possibly use a global transform and feed it with special options:
20 // include './libraries/transformations/global.inc.php';
21 if (!isset($options[0])) {
24 $options[0] = (int)$options[0];
27 if ($options[0] < 1) {
28 return bin2hex($buffer);
30 return chunk_split(bin2hex($buffer), $options[0], ' ');