Character codes: Difference between revisions

Content added Content deleted
Line 298: Line 298:
<lang php>echo ord('a'), "\n"; // prints "97"
<lang php>echo ord('a'), "\n"; // prints "97"
echo chr(97), "\n"; // prints "a"</lang>
echo chr(97), "\n"; // prints "a"</lang>

=={{header|PL/I}}==
<lang PL/I>
declare 1 u union,
2 c character (1),
2 i fixed binary (8) unsigned;
c = 'a'; put skip list (i); /* prints 97 */
i = 97; put skip list (c); /* prints 'a' */
</lang>


=={{header|PowerShell}}==
=={{header|PowerShell}}==