remove todo, after upgrade PHPExcel
[phpmyadmin/arisferyanto.git] / libraries / transformations / application_octetstream__hex.inc.php
bloba9b485f3d76a410a4e24956ac674bdd67e3d51e9
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * @package phpMyAdmin-Transformation
5 * @version $Id$
6 */
8 /**
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])) {
15 $options[0] = 2;
16 } else {
17 $options[0] = (int)$options[0];
20 if ($options[0] < 1) {
21 return bin2hex($buffer);
22 } else {
23 return chunk_split(bin2hex($buffer), $options[0], ' ');