Saturday, 17 December 2011

About chr() function

The chr() function returns a character from the specified ASCII value.

Following is a simple example of chr() function

<?php
echo chr(52)."<br />";
echo chr(052)."<br />";
echo chr(0x52)."<br />";
?> 

This code  will give output:

4
*
R




No comments:

Post a Comment