chr
���������� ���� ������ � ������������ �����.
��������� :
string chr(int ascii)
���������� ������ �� ������ ������� � ����� $code. ��� ������� ������� ��� ������� �����-���� ������������ �������� � ������ - ��������, ���� ���� ��� ������� ������� ��������, � ����� ��� ������ � ��������� �������.
���������� ���� ������ � ������������ �����.
��������� :
string chr(int ascii)
���������� ������ �� ������ ������� � ����� $code. ��� ������� ������� ��� ������� �����-���� ������������ �������� � ������ - ��������, ���� ���� ��� ������� ������� ��������, � ����� ��� ������ � ��������� �������.
<? // ������� ������� ������ ����, ��� �� ���������� ��������, // �� �������� � �������������� (�������) ���������� for($i=0, $x=0; $x<16; $x++) { for($y=0; $y<16; $y++) { $Chars[$x][$y]=array($i,chr($i)); $i++; } } // ������ ������� ����������� ����������, ��������� ��������� // ������� �������� ���� � HTML-�������� ?> <table border=1 cellpadding=1 cellspacing=0> <?for($y=0; $y<16; $y++) {?> <tr> <?for($x=0; $x<16; $x++) {?> <td> <?=$Chars[$x][$y][0]?>: <b><tt><?=$Chars[$x][$y][1]?></tt></b> </td> <?}?> </tr> <?}?> </table>
ord
���������� ascii ��� �������.
��������� :
int ord(string str)
��� ������� ���������� ASCII ��� ������� ������� ������ str.
��������, ord(chr($n)) ������ ����� $n - �������, ���� $n ��������� ����� ����� � 255.
���������� ascii ��� �������.
��������� :
int ord(string str)
��� ������� ���������� ASCII ��� ������� ������� ������ str.
��������, ord(chr($n)) ������ ����� $n - �������, ���� $n ��������� ����� ����� � 255.