Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Web technologies Questions | PHP Quiz | Set 1 | Question 11

  • Last Updated : 20 Sep, 2021

If you want to get the ASCII character in PHP which of the following syntax is correct?
(A) asc()
(B) val()
(C) ascii()
(D) chr()


Answer: (D)

Explanation: The chr() function is a built-in function in PHP and is used to convert an ASCII value to a character. It accepts an ASCII value as a parameter and returns a string representing a character from the specified ASCII value. the syntax are string chr( $asciiVal).

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Recommended Articles
Page :