[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libraries/transformations/ -> application_octetstream__hex.inc.php (source)

   1  <?php
   2  /* $Id: application_octetstream__hex.inc.php 8705 2006-03-02 17:27:07Z nijel $ */
   3  // vim: expandtab sw=4 ts=4 sts=4:
   4  
   5  function PMA_transformation_application_octetstream__hex($buffer, $options = array(), $meta = '') {
   6      // possibly use a global transform and feed it with special options:
   7      // include('./libraries/transformations/global.inc.php');
   8      if (!isset($options[0])) {
   9          $options[0] = 2;
  10      } else {
  11          $options[0] = (int)$options[0];
  12      }
  13  
  14      if ($options[0] < 1) {
  15          return bin2hex($buffer);
  16      } else {
  17          return chunk_split(bin2hex($buffer), $options[0], ' ');
  18      }
  19  
  20  }
  21  
  22  ?>


Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics