Uses
Uses | Description |
---|---|
wp-includes/Requests/Exception.php: Requests_Exception::__construct() | Create a new exception |
Convert a digit to its respective character
(int) (Required) Digit in the range 0-35
(string) Single character corresponding to digit
File: wp-includes/Requests/IDNAEncoder.php
protected static function digit_to_char($digit) { // @codeCoverageIgnoreStart // As far as I know, this never happens, but still good to be sure. if ($digit < 0 || $digit > 35) { throw new Requests_Exception(sprintf('Invalid digit %d', $digit), 'idna.invalid_digit', $digit); } // @codeCoverageIgnoreEnd $digits = 'abcdefghijklmnopqrstuvwxyz0123456789'; return substr($digits, $digit, 1); }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_idnaencoder/digit_to_char