[ Index ]

PHP Cross Reference of phpBB-3.3.0-deutsch

title

Body

[close]

/vendor/symfony/polyfill-util/ -> BinaryNoFuncOverload.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of the Symfony package.
   5   *
   6   * (c) Fabien Potencier <fabien@symfony.com>
   7   *
   8   * For the full copyright and license information, please view the LICENSE
   9   * file that was distributed with this source code.
  10   */
  11  
  12  namespace Symfony\Polyfill\Util;
  13  
  14  /**
  15   * @author Nicolas Grekas <p@tchwork.com>
  16   *
  17   * @internal
  18   */
  19  class BinaryNoFuncOverload
  20  {
  21      public static function strlen($s)
  22      {
  23          return \strlen($s);
  24      }
  25  
  26      public static function strpos($haystack, $needle, $offset = 0)
  27      {
  28          return strpos($haystack, $needle, $offset);
  29      }
  30  
  31      public static function strrpos($haystack, $needle, $offset = 0)
  32      {
  33          return strrpos($haystack, $needle, $offset);
  34      }
  35  
  36      public static function substr($string, $start, $length = PHP_INT_MAX)
  37      {
  38          return substr($string, $start, $length);
  39      }
  40  
  41      public static function stripos($s, $needle, $offset = 0)
  42      {
  43          return stripos($s, $needle, $offset);
  44      }
  45  
  46      public static function stristr($s, $needle, $part = false)
  47      {
  48          return stristr($s, $needle, $part);
  49      }
  50  
  51      public static function strrchr($s, $needle, $part = false)
  52      {
  53          return strrchr($s, $needle, $part);
  54      }
  55  
  56      public static function strripos($s, $needle, $offset = 0)
  57      {
  58          return strripos($s, $needle, $offset);
  59      }
  60  
  61      public static function strstr($s, $needle, $part = false)
  62      {
  63          return strstr($s, $needle, $part);
  64      }
  65  }


Generated: Tue Apr 7 19:44:41 2020 Cross-referenced by PHPXref 0.7.1