They are very simple to use and can be helpful in certain cirumsyances.
Examples:
- Code: Select all
$a = "A";
print ord($a); // prints 65 (ASCII code of 'A'
$a = 65;
print chr($a); // prints 'A'
$a = "A";
print ord($a); // prints 65 (ASCII code of 'A'
$a = 65;
print chr($a); // prints 'A'
Users browsing this forum: No registered users and 0 guests