Resources
2 weeks ago
LICENSE
2 weeks ago
Php83.php
2 weeks ago
README.md
2 weeks ago
bootstrap.php
2 weeks ago
bootstrap72.php
2 weeks ago
bootstrap81.php
2 weeks ago
composer.json
2 weeks ago
bootstrap72.php
20 lines
| 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 | use Symfony\Polyfill\Php83 as p; |
| 13 | |
| 14 | if (extension_loaded('mbstring')) { |
| 15 | if (!function_exists('mb_str_pad')) { |
| 16 | /** @return string|false */ |
| 17 | function mb_str_pad(?string $string, ?int $length, ?string $pad_string = ' ', ?int $pad_type = STR_PAD_RIGHT, ?string $encoding = null) { return p\Php83::mb_str_pad((string) $string, (int) $length, (string) $pad_string, (int) $pad_type, $encoding); } |
| 18 | } |
| 19 | } |
| 20 |