$_GET -- $HTTP_GET_VARS [������] — HTTP GET ����
ͨ�� URL �������ݸ���ǰ�ű��ı��������顣
$HTTP_GET_VARS ������ͬ����Ϣ�� ��������һ����ȫ�ֱ����� (ע�� $HTTP_GET_VARS �� $_GET �Dz�ͬ�ı�����PHP �������ǵķ�ʽ��ͬ)
| �汾 | ˵�� |
|---|---|
| 4.1.0 | ���� $_GET������ $HTTP_GET_VARS�� |
Example #1 $_GET ����
<?php
echo 'Hello ' . htmlspecialchars($_GET["name"]) . '!';
?>
�����û����ʵ��� http://example.com/?name=Hannes
�������̵���������ڣ�
Hello Hannes!
Note:
"Superglobal"Ҳ��Ϊ�Զ�����ȫ�ֱ�������ͱ�ʾ���ڽű��������������ж��ǿ��õġ�����Ҫ�ں��������� global $variable; ����������
Note:
GET ��ͨ�� urldecode() ���ݵġ�