Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
IntlChar::forDigit() function in PHP
The IntlChar::forDigit() function displays the character representation of specified digit in the specified radix.
Syntax
IntlChar::forDigit(digit,radix )
Parameters
Digit − A number to convert to a character
Radix − The radix value. Default 10.
Return
The IntlChar::forDigit() function returns the character representation of specified digit in the specified radix.
Example
The following is an example −
"; var_dump(IntlChar::forDigit(5, 16)); echo "
"; var_dump(IntlChar::forDigit(0)); ?>
Output
The following is the output −
int(55) int(53) int(48)
Advertisements
