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

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

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

���� ������

�������� ������ ������ �� ����������� ��������� php �� ������� ��������� ������� ��������� ���������. ������� ������������ PHP http://php.net, ��������� ��������� ����� ������ �������, ���������� ���������, ���������, ������������ ��������. ������� ��������� ������� ��������� ���������:

chunk_split explode htmlentities htmlspecialchars html_entity_decode htmlspecialchars_decode implode ltrim
rtrim nl2br parse_str str_replace str_split strip_tags strlen strstr
strtok substr_count substr_replace substr trim ucfirst mb_convert_encoding mb_detect_encoding
mb_ereg mb_internal_encoding mb_language mb_split mb_strlen mb_strpos mb_substr mb_substr_count

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

���������� �������� ������ test_generator.php, ��������� ���� (������� �������� � ��������� ����� test_xml) � ���� ������ ���������� ����:

1. ������ ������
1.1 ������ ����� �� ������ 1
1.2 ������ ����� �� ������ 1
1.3 ������ ����� �� ������ 1
2. ������ ������
2.1 ������ ����� �� ������ 2
2.2 ������ ����� �� ������ 2
���� �������� ������ ����������� ����� test_xml

<?xml version="1.0" standalone="yes"?> 
<test> 

<question id="1">
<name>������ ������</name>
<answer id="1">������ ����� �� ������ 1</answer>
<answer id="2">������ ����� �� ������ 1</answer>
<answer id="3">������ ����� �� ������ 1</answer>
</question>


<question id="2">
<name>������ ������</name>
<answer id="1">������ ����� �� ������ 2</answer>
<answer id="2">������ ����� �� ������ 2</answer>
</question>
</test> 

���� ����� ��������� ������������ ���������� �������� � ��������� ������. ���������� �������� � ������ �������/������ �� ����������. ���������� ��������� ��������� ��������� ������:
1) ������� ���� xml;
2) ������� ������������� �������;
3) ������� ������� ������� � ����� ������;
4) ������� ������ ������ �������/������ ���������;
5) ������������� ����������� ������� (&,", > � �.�.) � ���� html.
��������� ����� �� ������ �������� �� ������� ������� ������� ���� ��������, ���������� �� ����� ����� �������/������. ���������� html-�������� ����� ���� �����.

��������� ��������� ��������� ������: ������ ������/����� ���������� � ��������� ������ ����� test_xml.

��� ������� ������ ����� ����������� ������������� ������� PHP, �� ��������� � ����� ������ ������ (��������, ������� ������ � ����������� ����������� � xml). � ���� ������ ����������� ��� ����� ��������������� �� �������� ��������������� ������ �� ������������ ������� xml.

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

������� ����������� � 8 ������ ��� ������� ���������� �����, ������������� ��� ������ ������������ ������. ��� ���� ������� ������ ���� ��������� ���������, ��������� ������ ��������������� ����������� �������, ����� ������ �������� ����������� �������. ��� ������������ ������ ����� �������, ������� ���� ����������� ����� ������ ���� ����� �����.

������� ������, ������� ������ ������������������ ������ ������ ���������� �������, ������������ � �������, � ����� ����������� � ������� "���� ������" (��������, str_split — �������������� ������ � ������), ������ ������������ ���������� ������������� ��� ��������� �������� ���������� (�������� �������, ������ ������ � �.�.).