application_octetstream__hex.inc.php

来自「一个用PHP编写的」· PHP 代码 · 共 29 行

PHP
29
字号
<?php/* vim: set expandtab sw=4 ts=4 sts=4: *//** * * @version $Id: application_octetstream__hex.inc.php 10239 2007-04-01 09:51:41Z cybot_tm $ *//** * */function PMA_transformation_application_octetstream__hex($buffer, $options = array(), $meta = '') {    // possibly use a global transform and feed it with special options:    // include './libraries/transformations/global.inc.php';    if (!isset($options[0])) {        $options[0] = 2;    } else {        $options[0] = (int)$options[0];    }    if ($options[0] < 1) {        return bin2hex($buffer);    } else {        return chunk_split(bin2hex($buffer), $options[0], ' ');    }}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?