Home »
MCQs »
PHP MCQs
Which function converts a string of ASCII characters to hexadecimal values?
45. Which function converts a string of ASCII characters to hexadecimal values?
- bin2hex()
- str2hex()
- hex()
- str_hex()
Answer: A) bin2hex()
Explanation:
The bin2hex() function converts a string of ASCII characters to hexadecimal values.