[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

/vendor/s9e/regexp-builder/src/Input/ -> Bytes.php (source)

   1  <?php declare(strict_types=1);
   2  
   3  /**
   4  * @package   s9e\RegexpBuilder
   5  * @copyright Copyright (c) 2016-2021 The s9e authors
   6  * @license   http://www.opensource.org/licenses/mit-license.php The MIT License
   7  */
   8  namespace s9e\RegexpBuilder\Input;
   9  
  10  class Bytes extends BaseImplementation
  11  {
  12      /**
  13      * {@inheritdoc}
  14      */
  15  	public function split(string $string): array
  16      {
  17          if ($string === '')
  18          {
  19              return [];
  20          }
  21  
  22          return array_map('ord', str_split($string, 1));
  23      }
  24  }


Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1