Phát biểu nào sau đây về $_GET là sai?
A.
Là một mảng kết hợp của các biến nhận được từ script hiện tại thông qua đường dẫn URL.
B.
Được xây dựng để nhận dữ liệu từ form sử dụng phương thức GET.
C.
Người dùng không thể nhìn thấy được thông tin được gửi từ form sử dụng GET trên thanh địa chỉ của trình duyệt và số lượng thông tin được gửi là có giới hạn.
D.
Từ PHP 4.1.0 thì $_GET được giới thiệu để thay thế cho $HTTP_GET_VARS.
Trả lời:
Đáp án đúng: C
The question asks to find the wrong statement about $_GET in PHP.
- Option 1 is correct: $_GET is an associative array containing variables passed to the current script via URL parameters.
- Option 2 is correct: $_GET is commonly used to receive data from HTML forms using the GET method.
- Option 3 is wrong: Information sent via the GET method is displayed in the browser's address bar and has a size limit.
- Option 4 is correct: $_GET was introduced in PHP 4.1.0 to replace $HTTP_GET_VARS.
Therefore, option 3 is the wrong statement.