PHP chr() FunctionThe PHP chr() function is used to generate a single byte string from a number. In another words we can say that it returns a character from specified ASCII value. Syntax:
Example 1Output: Your character is :52 By using 'chr()' function your value is: 4 Example 2Output: Your character is :42 By using 'chr()' function your value is: * Example 3Output: Your character is :0x52 By using 'chr()' function your value is: R Example 4Output: 2 + 2 = 4 Given above program in which the ASCII value of chr(43) is '+' and chr(61) is '=' converted . Next TopicPHP String |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India