(c) Larry Ewing, Simon Budig, Garrett LeSage
� 1994 �.

������� ����������� � ��������������� �����������

������ | ����� | � ������� | ��������� ��������� | ����������� ��� | �������� ���/AMICT
���������� | ���������� | ������� ������� | ������-��������� | �������� � ��������� ������
�������������� ������� | ���������� | ����� �������� | ���������� ����������

���� ������

������� ��������� �������� � ������ ����������� ������� � PHP. �������� ������ ������ �� ����������� ��������� php �� ������� ��������� ������� ��������� ��������� ��� �������������� ��������� (� ���������, utf8). ������� ������������ PHP http://php.net, ��������� ��������� ����� ������ �������, ���������� ���������, ���������, ������������ ��������. ������� ��������� �������:

file_get_contents mb_detect_encoding mb_strlen mb_strtoupper mb_substr

�������� ������

��������: ��� ������������� �������������� ������� ���������� ������� ��� ��������� (� ���������, "UTF-8"). ���������� ��������� ��������� �������:

1. �������� ������ 3_1.php � ������� ����������� ������� f_sum, ������������ ����� ���� ����� $a, $b. ��������� ���������� � ������� �� ��������. ��������� ������� ������ ����� �������� ��-���������. ��������� ����� �������.

2. ������� ���� test.txt � ������������ (�������������) �������. �������� ������ 3_2.php, ������� ��������� ���������� ����� � ������ $str.

3. ������� ��� ��������� ������ ��� ������ $str � ���������� �������� � ������.

4. ������� $str � ������� ��������.

5. ������� ������ ������ ������ $str.

6. ������� ������ $str ���, ����� ������ ������ ��� ������������ � ������� �������, ��������� - ��� ����.

�������� ������ ������

������� ��������� ���������, ���� ��� ��������� ���������, ��������� ������������� ����������� �������, ����� �������� ����������� �������.

������� ������, ������� ������ ������������������ ������ ������ ���������� ����������� � ������� "���� ������" ������� (��������, mb_substr — ��������� ���������), ������ ������������ ���������� ������������� ��� ��������� �������� ���������� (�������� �������, ������ ������ � �.�.).