[Php 4, Php 5, Php 7, Php 8]
hexdec - thập lục phân đến thập phân — Hexadecimal to decimal
Sự mô tả
hexdec [chuỗi $hex_string
]: int | float[string $hex_string
]: int|float
hexdec [] sẽ bỏ qua bất kỳ ký tự không phải là bất kỳ nhân vật nào mà nó gặp phải. Kể từ Php 7.4.0 cung cấp bất kỳ ký tự không hợp lệ nào cũng không được chấp nhận. will ignore any non-hexadecimal characters it encounters. As of PHP 7.4.0 supplying any invalid characters is deprecated.
Thông số
hex_string
Chuỗi thập lục phân để chuyển đổi
Trả về giá trị
Đại diện thập phân của hex_string
Thay đổi
7.4.0 | hexdec [chuỗi $hex_string ]: int | float |
hexdec [] sẽ bỏ qua bất kỳ ký tự không phải là bất kỳ nhân vật nào mà nó gặp phải. Kể từ Php 7.4.0 cung cấp bất kỳ ký tự không hợp lệ nào cũng không được chấp nhận.
Thông sốhexdec[] example
hex_string
Chuỗi thập lục phân để chuyển đổi:
Trả về giá trịint type, larger values are returned as float in that case.
Đại diện thập phân của hex_string
- Thay đổi
- Phiên bản
- Vượt qua các ký tự không hợp lệ bây giờ sẽ tạo ra một thông báo khấu hao. Kết quả vẫn sẽ được tính toán như thể các ký tự không hợp lệ không tồn tại.
- Ví dụ
Ví dụ #1 hexdec [] ví dụ ¶
Ghi chú
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
For eg: #FFF and #FFFFFF will produce the same result
OUTPUT:
hex2RGB["#FF0"] -> array[ red =>255, green => 255, blue => 0]
hex2RGB["#FFFF00] -> Same as above
hex2RGB["#FF0", true] -> 255,255,0
hex2RGB["#FF0", true, ":"] -> 255:255:0
Ghi chú: ¶
Hàm có thể chuyển đổi các số quá lớn để phù hợp với loại Nền tảng Int, các giá trị lớn hơn được trả về dưới dạng nổi trong trường hợp đó.
hex_string
0
hex_string
1
Xem thêm ¶
Dechex [] - thập phân đến thập lục phân
hex_string
3
hex_string
4
Bindec [] - nhị phân đến thập phân ¶
octdec [] - bát phân đến thập phân
hex_string
6
hex_string
7
hex_string
8
hex_string
9base_convert [] - Chuyển đổi một số giữa các cơ sở tùy ý ¶
Ghi chú
hex_string
0
hex_string
1
Ghi chú: ¶
octdec [] - bát phân đến thập phân
hex_string
3
hex_string
4
hex_string
5
hex_string
6base_convert [] - Chuyển đổi một số giữa các cơ sở tùy ý ¶
Hafees at msn dot com ¶
hex_string
7
hex_string
8
hex_string
9
0
1
212 năm trước ¶
Hafees at msn dot com ¶
3
4
12 năm trước ¶
chương trình tại Mundosica dot com ¶
6
7
8
9
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
0
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
1
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
2
10 năm trước ¶
Hafees at msn dot com ¶
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
4
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
5
12 năm trước ¶
Hàm có thể chuyển đổi các số quá lớn để phù hợp với loại Nền tảng Int, các giá trị lớn hơn được trả về dưới dạng nổi trong trường hợp đó.
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
7
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
8
Xem thêm ¶
octdec [] - bát phân đến thập phân
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
0
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
1
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
2
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
3
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
4
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
5
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
6
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
7base_convert [] - Chuyển đổi một số giữa các cơ sở tùy ý ¶
octdec [] - bát phân đến thập phân
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
8
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
9
For eg: #FFF and #FFFFFF will produce the same result
0base_convert [] - Chuyển đổi một số giữa các cơ sở tùy ý ¶
Hafees at msn dot com ¶
For eg: #FFF and #FFFFFF will produce the same result
1
12 năm trước ¶
chương trình tại Mundosica dot com ¶
For eg: #FFF and #FFFFFF will produce the same result
2
For eg: #FFF and #FFFFFF will produce the same result
3
For eg: #FFF and #FFFFFF will produce the same result
4
10 năm trước ¶
chương trình tại Mundosica dot com ¶
For eg: #FFF and #FFFFFF will produce the same result
6
For eg: #FFF and #FFFFFF will produce the same result
7
12 năm trước ¶
Dechex [] - thập phân đến thập lục phân
For eg: #FFF and #FFFFFF will produce the same result
9
0
OUTPUT:
1
OUTPUT:
Bindec [] - nhị phân đến thập phân ¶
Dechex [] - thập phân đến thập lục phân
3
OUTPUT:
4
OUTPUT:
5
OUTPUT:
Bindec [] - nhị phân đến thập phân ¶
octdec [] - bát phân đến thập phân
7
OUTPUT:
8
OUTPUT:
base_convert [] - Chuyển đổi một số giữa các cơ sở tùy ý ¶
octdec [] - bát phân đến thập phân
hex2RGB["#FF0"] -> array[ red =>255, green => 255, blue => 0]
0
hex2RGB["#FFFF00] -> Same as above
hex2RGB["#FF0", true] -> 255,255,0
hex2RGB["#FF0", true, ":"] -> 255:255:0
hex2RGB["#FF0"] -> array[ red =>255, green => 255, blue => 0]
1
hex2RGB["#FFFF00] -> Same as above
hex2RGB["#FF0", true] -> 255,255,0
hex2RGB["#FF0", true, ":"] -> 255:255:0
hex2RGB["#FF0"] -> array[ red =>255, green => 255, blue => 0]
2
hex2RGB["#FFFF00] -> Same as above
hex2RGB["#FF0", true] -> 255,255,0
hex2RGB["#FF0", true, ":"] -> 255:255:0
hex2RGB["#FF0"] -> array[ red =>255, green => 255, blue => 0]
hex2RGB["#FFFF00] -> Same as above
hex2RGB["#FF0", true] -> 255,255,0
hex2RGB["#FF0", true, ":"] -> 255:255:0
3base_convert [] - Chuyển đổi một số giữa các cơ sở tùy ý ¶
Hafees at msn dot com ¶
hex2RGB["#FF0"] -> array[ red =>255, green => 255, blue => 0]
4
hex2RGB["#FFFF00] -> Same as above
hex2RGB["#FF0", true] -> 255,255,0
hex2RGB["#FF0", true, ":"] -> 255:255:0
hex2RGB["#FF0"] -> array[ red =>255, green => 255, blue => 0]
5
hex2RGB["#FFFF00] -> Same as above
hex2RGB["#FF0", true] -> 255,255,0
hex2RGB["#FF0", true, ":"] -> 255:255:0
hex2RGB["#FF0"] -> array[ red =>255, green => 255, blue => 0]
6
hex2RGB["#FFFF00] -> Same as above
hex2RGB["#FF0", true] -> 255,255,0
hex2RGB["#FF0", true, ":"] -> 255:255:0
hex2RGB["#FF0"] -> array[ red =>255, green => 255, blue => 0]
hex2RGB["#FFFF00] -> Same as above
hex2RGB["#FF0", true] -> 255,255,0
hex2RGB["#FF0", true, ":"] -> 255:255:0
712 năm trước ¶
Hafees at msn dot com ¶
hex2RGB["#FF0"] -> array[ red =>255, green => 255, blue => 0]
8
hex2RGB["#FFFF00] -> Same as above
hex2RGB["#FF0", true] -> 255,255,0
hex2RGB["#FF0", true, ":"] -> 255:255:0
hex2RGB["#FF0"] -> array[ red =>255, green => 255, blue => 0]
9
hex2RGB["#FFFF00] -> Same as above
hex2RGB["#FF0", true] -> 255,255,0
hex2RGB["#FF0", true, ":"] -> 255:255:0
0
1
212 năm trước ¶
Hafees at msn dot com ¶
3
4
5
chương trình tại Mundosica dot com ¶ ¶
Hafees at msn dot com ¶
7
8
12 năm trước ¶
Hafees at msn dot com ¶
hex_string
00
hex_string
01
hex_string
02
hex_string
03
hex_string
0412 năm trước ¶
chương trình tại Mundosica dot com ¶
hex_string
05
hex_string
06
hex_string
07
hex_string
08
10 năm trước ¶
chương trình tại Mundosica dot com ¶
hex_string
10
hex_string
11
hex_string
12
hex_string
13
hex_string
14
hex_string
15
hex_string
16
hex_string
17
10 năm trước ¶
K10206 tại Naver Dot Com ¶
hex_string
19
hex_string
20
hex_string
21
hex_string
22
15 năm trước ¶
octdec [] - bát phân đến thập phân
hex_string
24
hex_string
25
hex_string
26
hex_string
27
hex_string
28
hex_string
29
base_convert [] - Chuyển đổi một số giữa các cơ sở tùy ý ¶
Ghi chú
hex_string
31
hex_string
32
hex_string
33
hex_string
34Ghi chú: ¶
Ghi chú
hex_string
35
hex_string
36
hex_string
37
hex_string
38
hex_string
39