86. PHP Program to print ASCII values from 0 to 255.
How does this program work?
- This program is used to print ASCII values of numbers from 0 to 255 using PHP.
- In this program chr() function can built-in function in PHP because it is used to display ASCII value of equivalent given number.
Here is the code
<html>
<head>
<title>PHP Program To print ASCII values from 0 to 255</title>
</head>
<body>
<?php
for($i = 0; $i <= 255; $i++) //To print ASCII value from 0 to 255
{
echo "The equivalent ASCII value of " .$i. " is: " .chr($i);
}
return 0;
?>
</body>
</html>