Please enable JavaScript.
Coggle requires JavaScript to display documents.
PHP - Coggle Diagram
PHP
OOP
ABSTRACT CLASS
-
They offer the advantage of being able to contain both methods with definitions and abstract methods that aren't defined until they are inherited.
-
-
-
STATIC
Từ khóa static trong PHP định nghĩa các thuộc tính tĩnh và phương thức tĩnh. Một thuộc tính / phương thức tĩnh của một lớp có thể được truy cập mà không cần tạo một đối tượng của lớp đó. Một thuộc tính hoặc phương thức tĩnh được truy cập bằng cách sử dụng toán tử phân giải phạm vi :: giữa tên lớp và tên thuộc tính / phương thức.
-
-
-
PHP INTERFACE: An interface specifies a list of methods that a class MUST implement; implement. However, the interface itself does not contain any method implementations
The interface keyword defines an interface.
The implements keyword is used in a class to implement an interface.
FINAL KEYWORD
CAN NOT BE INHERIT
The PHP final keyword defines methods that cannot be overridden in child classes. Classes that are defined final cannot be inherited.
-
_COOKIES
-
-
setcookie(name, value, expire, path, domain, secure, httponly);
-
GET AND POST METHOD
Thông tin được gửi từ một biểu mẫu qua phương thức POST là ẩn đối với những người khác, vì tất cả các tên và / hoặc giá trị đều được nhúng trong nội dung của yêu cầu HTTP. Ngoài ra, không có giới hạn về số lượng thông tin được gửi. Hơn nữa, POST hỗ trợ chức năng nâng cao như hỗ trợ đầu vào nhị phân nhiều phần trong khi tải tệp lên máy chủ. Tuy nhiên, không thể đánh dấu trang vì các giá trị đã gửi không hiển thị.
thông tin được gửi qua biểu mẫu sử dụng phương thức GET được hiển thị cho mọi người (tất cả các tên và giá trị biến được hiển thị trong URL). GET cũng đặt giới hạn về số lượng thông tin có thể được gửi - khoảng 2000 ký tự. Tuy nhiên, vì các biến được hiển thị trong URL, nên có thể đánh dấu trang, điều này có thể hữu ích trong một số trường hợp.
The isset() function determined whether the form had been submitted, as well as whether the text contained a value.
SESSION: $_SESSION
STORE INFORMATION IN VARIABLES, TO BE USED IN MULTIPLE PAGE, NOT ON THE USER' COMPUTER, LAST UNTIL THE USER CLOSE THE BROWSER
-
-
WORK WITH FILE: fopen()
MODE
-
w: Opens file for write only. Erases the contents of the file or creates a new file if it doesn't exist.
-
-
-
w+: Opens file for read/write. Erases the contents of the file or creates a new file if it doesn't exist.
-
-
-
-
-
global keyword
The difference is that the post-increment returns the original value before it changes the variable, while the pre-increment changes the variable first and then returns the value(a++)
Assocative: $people = array("David"=>"27", "Amy"=>"21", "John"=>"42");
-
-
-
The purpose of the PHP superglobals $_GET and $_POST is to collect data that has been entered into a form.
-