PHP có thể là ngôn ngữ phát triển web được sử dụng rộng rãi và dễ tiếp cận nhất hiện nay. Rất ít công nghệ khác làm cho việc thêm chức năng vào trang web trở nên đơn giản hoặc nhanh chóng. Nó chiếm một tỷ lệ lớn trên web, bao gồm cả trang web này
Bộ sưu tập độc đáo gồm 25 trang cheat PHP của chúng tôi cung cấp tài liệu tham khảo cho mọi thứ, từ định dạng ngày tháng đến hướng dẫn tiêu chuẩn PSR
Thẻ liên quan. Development Web Programming HTML LAMP
Our PHP cheat sheet aims to help anyone trying to get proficient in or improve their knowledge of PHP. The programming language is among the most popular in web development. It’s in the heart of WordPress, the world’s most popular CMS, and also forms the base of other platforms like Joomla and Drupal. [Don’t miss our comparison of the three. ]
Aside from that, PHP is an Open Source and thus free to use. Since its inception in 1995, it has had several releases. Phiên bản mới nhất, PHP 7. 4, came out in December 2021
PHP is a server-side language, meaning that it executes on the server, not in the user’s browser [as opposed to, for example, Javascript]. PHP scripts produce HTML which is then passed on to the browser for interpretation. Consequently, the user doesn’t see the code itself but only the result
The programming language is relatively easy to learn for beginners, but it also offers a lot of advanced possibilities for veteran programmers
For that reason, the following PHP cheat sheet is suitable for you no matter where you are in your journey. It covers the most important PHP concepts and functions and acts as a quick reference guide for those using PHP for web development
We have a lot to cover, so let’s get right into it. If that’s not enough for you, we also have cheat sheets for HTML, CSS, and jQuery as well as the aforementioned Javascript
PHP Cheat Sheet
- Download Link
PHP Cheat Sheet – The Basics
We are starting off with the basics – how to declare PHP in a file, write comments, and output data
Including PHP in a File
PHP files end in
1. Besides PHP itself, they can contain text, HTML, CSS, and JavaScript. In order for a browser to recognize PHP, you need to wrap it in brackets. 2 and 3. Consequently, you can execute PHP on a pageWriting Comments
Like many other languages, PHP also has the ability to add comments. This is important for annotating your code for human readers but in a way that the browser doesn’t try to execute it. In PHP, you have several ways for that
- 4 — Denotes comments that only span one line
- 5 — Another way of producing single-line comments
- 67 — Everything between 6 and 9 is not executed, also works across several lines
A common example of the use of comments is WordPress theme headers
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
Outputting Data
Trong PHP, dữ liệu thường được xuất ra bằng cách sử dụng
function NameOfTheFunction[] { //place PHP code here }0 hoặc
function NameOfTheFunction[] { //place PHP code here }1. For example, the title of this blog post might be displayed on a page like this
The two commands
function NameOfTheFunction[] { //place PHP code here }0 and
function NameOfTheFunction[] { //place PHP code here }1 are pretty much the same. The only difference is that the former has no return value and can take several parameters, while the latter has a return value of 1 and can only take one argument
An important note. Giống như tất cả các lệnh PHP khác, các hàm
function NameOfTheFunction[] { //place PHP code here }0 và
function NameOfTheFunction[] { //place PHP code here }1 không phân biệt chữ hoa chữ thường. Điều đó có nghĩa là khi bạn viết
function NameOfTheFunction[] { //place PHP code here }6,
function NameOfTheFunction[] { //place PHP code here }7,
function NameOfTheFunction[] { //place PHP code here }8 hoặc bất kỳ biến thể nào khác, chúng sẽ tiếp tục hoạt động. Khi bạn tìm hiểu sâu hơn, điều đó không áp dụng cho mọi thứ
Viết hàm PHP
Hàm là lối tắt cho các đoạn mã thường được sử dụng. Chúng làm cho việc lập trình trở nên dễ dàng hơn nhiều vì bạn không phải sử dụng lại các đoạn mã dài. Thay vào đó, bạn tạo chúng một lần và sử dụng phím tắt khi cần
Có thể tạo các hàm PHP của riêng bạn nhưng cũng có nhiều hàm được tích hợp sẵn trong ngôn ngữ lập trình. Phần lớn bảng cheat PHP này được dành cho điều đó
Cú pháp cơ bản để tạo một hàm
function NameOfTheFunction[] { //place PHP code here }
giải thích nhanh. phần đầu tiên là chức năng của một cái tên [nhắc nhở. tên hàm không phân biệt chữ hoa chữ thường]. Sau đó, mọi thứ nằm giữa các dấu ngoặc nhọn là những gì hàm thực hiện khi được gọi
Biến và Hằng
Tương tự như hầu hết các ngôn ngữ lập trình khác, PHP cho phép bạn làm việc với các biến và hằng số. Đây là những đoạn mã lưu trữ các loại thông tin khác nhau
Định nghĩa các biến
Để làm bất cứ điều gì với các biến, trước tiên bạn cần xác định chúng. Trong PHP, bạn biểu thị một biến bằng cách sử dụng ký hiệu
function NameOfTheFunction[] { //place PHP code here }9 và gán giá trị của nó bằng cách sử dụng 0. Một ví dụ điển hình
Một vài điểm quan trọng
- Các biến cần bắt đầu bằng một chữ cái hoặc dấu gạch dưới [_______23_______1] và chỉ có thể bao gồm các ký tự chữ và số
- Các biến PHP phân biệt chữ hoa chữ thường, điều đó có nghĩa là 2 và 3 không giống nhau
- Nếu biến của bạn bao gồm nhiều hơn một từ, hãy viết nó 4 hoặc 5
Các loại dữ liệu
Các biến có thể lấy các loại dữ liệu khác nhau
- Số nguyên — Số nguyên là số không thập phân giữa -2,147,483,648 và ,147,483,647. Chúng phải có ít nhất một chữ số và không có dấu thập phân. Nó có thể ở dạng thập phân, thập lục phân hoặc bát phân
- Số float — Đây là tên của các số có dấu thập phân hoặc ở dạng số mũ
- Chuỗi - Điều này đơn giản có nghĩa là văn bản. Chúng tôi sẽ nói về nó một cách chi tiết hơn dưới đây
- Giá trị Boolean — Có nghĩa là câu đúng/sai
- Mảng — Mảng là các biến lưu trữ một số giá trị. Chúng tôi sẽ nói về họ chi tiết hơn dưới đây
- Đối tượng — Đối tượng lưu trữ cả dữ liệu và thông tin về cách xử lý nó
- Tài nguyên — Đây là các tham chiếu đến các chức năng và tài nguyên bên ngoài PHP
- NULL — Một biến là NULL không có bất kỳ giá trị nào
Không cần khai báo các biến PHP theo một cách nhất định. Chúng tự động lấy loại dữ liệu mà chúng chứa
Phạm vi biến đổi
Các biến có thể có sẵn trong các phạm vi khác nhau, nghĩa là một phần của tập lệnh mà bạn có thể truy cập chúng. Đây có thể là toàn cầu, cục bộ và tĩnh
Bất kỳ biến nào được khai báo bên ngoài hàm đều có sẵn trên toàn cầu. Điều đó có nghĩa là nó cũng có thể được truy cập bên ngoài một chức năng
Nếu bạn khai báo một biến bên trong một hàm, nó sẽ có phạm vi cục bộ. Hậu quả là nó chỉ có thể được truy cập trong chức năng đó
Một cách giải quyết vấn đề này là thêm một biến cục bộ vào trước với ____23_______6. Bằng cách đó, nó trở thành một phần của phạm vi toàn cầu
function myFunction[] { global $a, $b; $b = $a - $b; }
Trong cả hai trường hợp, biến trở thành một phần của biến
7 được đề cập bên dướiCuối cùng, cũng có thể thêm
8 trước một biến cục bộ. Bằng cách đó, nó sẽ không bị xóa sau khi chức năng của nó được thực thi và có thể được sử dụng lạiBiến được xác định trước
PHP cũng đi kèm với một số biến mặc định được gọi là superglobals. Đó là bởi vì chúng có thể truy cập được từ mọi nơi, bất kể phạm vi
- 7 — Được sử dụng để truy cập các biến toàn cục từ bất kỳ đâu bên trong tập lệnh PHP
function myFunction[] { global $a, $b; $b = $a - $b; }
0 — Chứa thông tin về vị trí của tiêu đề, đường dẫn và tập lệnhfunction myFunction[] { global $a, $b; $b = $a - $b; }
1 — Có thể thu thập dữ liệu được gửi trong URL hoặc được gửi dưới dạng HTMLfunction myFunction[] { global $a, $b; $b = $a - $b; }
2 — Được sử dụng để thu thập dữ liệu từ một biểu mẫu HTML và để chuyển các biếnfunction myFunction[] { global $a, $b; $b = $a - $b; }
3 — Cũng thu thập dữ liệu sau khi gửi biểu mẫu HTML
Hàm xử lý biến
Bên cạnh đó, có rất nhiều chức năng để làm việc với các biến
function myFunction[] { global $a, $b; $b = $a - $b; }
4 — Được sử dụng để truy xuất giá trị boolean của một biếnfunction myFunction[] { global $a, $b; $b = $a - $b; }
5 — Xuất ra một chuỗi đại diện cho giá trị zend bên trongfunction myFunction[] { global $a, $b; $b = $a - $b; }
6 — Kiểm tra xem một biến có rỗng hay khôngfunction myFunction[] { global $a, $b; $b = $a - $b; }
7 — Lấy giá trị float của một biến [function myFunction[] { global $a, $b; $b = $a - $b; }
8 là một khả năng khác]function myFunction[] { global $a, $b; $b = $a - $b; }
9 — Trả về một mảng gồm tất cả các biến đã xác địnhdefine[name, value, true/false]
0 — Trả về loại tài nguyêndefine[name, value, true/false]
1 — Truy xuất loại biếndefine[name, value, true/false]
2 — Nhập các biến GET/POST/Cookie vào phạm vi toàn cầudefine[name, value, true/false]
3 — Tìm giá trị nguyên của một biếndefine[name, value, true/false]
4 — Kiểm tra xem một biến có phải là một mảng hay khôngdefine[name, value, true/false]
5 — Tìm hiểu xem một biến có phải là boolean hay khôngdefine[name, value, true/false]
6 — Xác minh xem bạn có thể gọi nội dung của một biến là một hàm hay khôngdefine[name, value, true/false]
7 — Kiểm tra xem nội dung của một biến có đếm được khôngdefine[name, value, true/false]
8 — Tìm hiểu xem loại biến có phải là float hay không, các lựa chọn thay thế.define[name, value, true/false]
9 và 0- 1 — Kiểm tra xem loại biến có phải là số nguyên hay không, 2 và 3 cũng hoạt động
- 4 — Xác minh rằng nội dung của một biến là một giá trị có thể lặp lại
- 5 — Kiểm tra xem giá trị của một biến có phải là NULL hay không
- 6 — Tìm hiểu xem một biến là một số hay một chuỗi số
- 7 — Xác định xem một biến có phải là một đối tượng hay không
- 8 — Kiểm tra xem một biến có phải là tài nguyên không
- 9 — Kiểm tra xem một biến có phải là vô hướng hay không
for [starting counter value; ending counter value; increment by which to increase] { // code to execute goes here }
0 — Tìm hiểu xem loại biến có phải là chuỗi khôngfor [starting counter value; ending counter value; increment by which to increase] { // code to execute goes here }
1 — Xác định xem một biến đã được đặt và không phải là NULLfor [starting counter value; ending counter value; increment by which to increase] { // code to execute goes here }
2 — Cung cấp thông tin mà con người có thể đọc được về một biếnfor [starting counter value; ending counter value; increment by which to increase] { // code to execute goes here }
3 — Tạo đại diện cho một giá trị có thể lưu trữfor [starting counter value; ending counter value; increment by which to increase] { // code to execute goes here }
4 — Đặt loại biếnfor [starting counter value; ending counter value; increment by which to increase] { // code to execute goes here }
5 — Truy xuất giá trị chuỗi của một biếnfor [starting counter value; ending counter value; increment by which to increase] { // code to execute goes here }
6 — Tạo giá trị PHP từ biểu diễn được lưu trữfor [starting counter value; ending counter value; increment by which to increase] { // code to execute goes here }
7 — Bỏ đặt biếnfor [starting counter value; ending counter value; increment by which to increase] { // code to execute goes here }
8 — Kết xuất thông tin về một biếnfor [starting counter value; ending counter value; increment by which to increase] { // code to execute goes here }
9 — Xuất hoặc trả về một chuỗi đại diện của một biến có thể được phân tích cú pháp
hằng số
Ngoài các biến, bạn cũng có thể xác định các hằng cũng lưu trữ các giá trị. Ngược lại với các biến, giá trị của chúng không thể thay đổi, nó bị khóa trong
Trong PHP bạn có thể định nghĩa một hằng số
define[name, value, true/false]
Đầu tiên là tên, thứ hai là giá trị của hằng số và tham số thứ ba liệu tên của nó có phân biệt chữ hoa chữ thường hay không [mặc định là sai]
Các hằng số rất hữu ích vì chúng cho phép bạn thay đổi giá trị cho toàn bộ tập lệnh ở một nơi thay vì phải thay thế mọi phiên bản của tập lệnh đó. Chúng cũng có tính chất toàn cầu, nghĩa là chúng có thể được truy cập từ mọi nơi
Ngoài các hằng số do người dùng định nghĩa, còn có một số hằng số PHP mặc định
foreach [$InsertYourArrayName as $value] { // code to execute goes here }
0 — Biểu thị số dòng hiện tại trong tệpforeach [$InsertYourArrayName as $value] { // code to execute goes here }
1 — Là đường dẫn đầy đủ và tên tệp của tệpforeach [$InsertYourArrayName as $value] { // code to execute goes here }
2 — Thư mục của tệpforeach [$InsertYourArrayName as $value] { // code to execute goes here }
3 — Tên hàmforeach [$InsertYourArrayName as $value] { // code to execute goes here }
4 — Tên lớp, bao gồm không gian tên được khai báo trongforeach [$InsertYourArrayName as $value] { // code to execute goes here }
5 — Tên đặc điểm, cũng bao gồm không gian tênforeach [$InsertYourArrayName as $value] { // code to execute goes here }
6 — Tên phương thức của lớpforeach [$InsertYourArrayName as $value] { // code to execute goes here }
7 — Tên của không gian tên hiện tại
Mảng PHP – Giá trị được nhóm
Mảng là một cách để tổ chức một số giá trị trong một biến để chúng có thể được sử dụng cùng nhau. Trong khi các hàm dành cho các khối mã, thì các mảng dành cho các giá trị – một trình giữ chỗ cho các khối thông tin lớn hơn
Trong PHP có nhiều loại mảng khác nhau
- Mảng được lập chỉ mục – Mảng có chỉ mục số
- Mảng kết hợp – Mảng nơi các khóa được đặt tên
- Mảng đa chiều – Mảng chứa một hoặc nhiều mảng khác
Khai báo một mảng trong PHP
Mảng trong PHP được tạo bằng hàm
foreach [$InsertYourArrayName as $value] { // code to execute goes here }8
Khóa mảng có thể là chuỗi hoặc số nguyên
Hàm mảng
PHP cung cấp vô số hàm mặc định để làm việc với mảng
foreach [$InsertYourArrayName as $value] { // code to execute goes here }
9 — Thay đổi tất cả các phím trong một mảng thành chữ hoa hoặc chữ thường/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
00 — Chia một mảng thành nhiều phần/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
01 — Truy xuất các giá trị từ một cột duy nhất trong một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
02 — Hợp nhất các khóa từ một mảng và các giá trị từ một mảng khác thành một mảng mới/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
03 — Đếm tất cả các giá trị trong một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
04 — So sánh các mảng, trả về sự khác biệt [chỉ giá trị]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
05 — So sánh các mảng, trả về sự khác biệt [giá trị và khóa]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
06 — So sánh các mảng, trả về sự khác biệt [chỉ các phím]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
07 — So sánh các mảng [khóa và giá trị] thông qua chức năng gọi lại của người dùng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
08 — So sánh các mảng [chỉ các phím] thông qua chức năng gọi lại của người dùng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
09 — Điền vào một mảng các giá trị/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
10 — Điền vào một mảng các giá trị, chỉ định các khóa/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
11 — Lọc các phần tử của mảng thông qua hàm gọi lại/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
12 — Trao đổi tất cả các khóa trong một mảng với các giá trị được liên kết của chúng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
13 — So sánh các mảng và trả về giá trị khớp của chúng [chỉ giá trị]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
14 — So sánh các mảng và trả về giá trị khớp của chúng [khóa và giá trị]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
15 — So sánh các mảng và trả về giá trị khớp của chúng [chỉ các phím]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
16 — So sánh các mảng thông qua hàm gọi lại do người dùng xác định [khóa và giá trị]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
17 — So sánh các mảng thông qua chức năng gọi lại do người dùng xác định [chỉ các phím]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
18 — Kiểm tra xem một khóa đã chỉ định có tồn tại trong một mảng hay không, thay thế./* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
19/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
20 — Trả về tất cả các khóa hoặc một tập hợp con các khóa trong một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
21 — Áp dụng gọi lại cho các phần tử của một mảng đã cho/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
22 — Hợp nhất một hoặc nhiều mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
23 — Hợp nhất một hoặc nhiều mảng theo cách đệ quy/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
24 — Sắp xếp mảng nhiều hoặc nhiều chiều/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
25 — Chèn một số mục đã chỉ định [với giá trị đã chỉ định] vào một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
26 — Xóa phần tử ở cuối mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
27 — Tính tích của tất cả các giá trị trong một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
28 — Đẩy một hoặc một số phần tử về cuối mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
29 — Chọn một hoặc nhiều mục nhập ngẫu nhiên trong một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
30 — Giảm mảng thành một chuỗi bằng hàm do người dùng xác định/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
31 — Thay thế các phần tử trong mảng đầu tiên bằng các giá trị từ các mảng sau/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
32 — Thay thế đệ quy các phần tử từ mảng sau vào mảng đầu tiên/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
33 — Trả về một mảng theo thứ tự đảo ngược/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
34 — Tìm kiếm mảng cho một giá trị nhất định và trả về khóa đầu tiên nếu thành công/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
35 — Dịch chuyển phần tử từ đầu mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
36 — Trích xuất một lát của mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
37 — Loại bỏ một phần của mảng và thay thế nó/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
38 — Tính tổng các giá trị trong một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
39 — So sánh các mảng và trả về sự khác biệt bằng hàm người dùng [chỉ giá trị]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
40 — So sánh các mảng và trả về sự khác biệt bằng hàm mặc định và hàm người dùng [khóa và giá trị]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
41 — So sánh các mảng và trả về sự khác biệt bằng cách sử dụng hai hàm người dùng [giá trị và khóa]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
42 — So sánh các mảng và trả về kết quả khớp thông qua hàm người dùng [chỉ giá trị]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
43 — So sánh các mảng và trả về kết quả khớp thông qua hàm người dùng mặc định [khóa và giá trị]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
44 — So sánh các mảng và trả về kết quả khớp thông qua hai hàm người dùng [khóa và giá trị]/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
45 — Loại bỏ các giá trị trùng lặp khỏi một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
46 — Thêm một hoặc nhiều phần tử vào đầu mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
47 — Trả về tất cả các giá trị của một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
48 — Áp dụng hàm người dùng cho mọi phần tử trong một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
49 — Áp dụng đệ quy hàm người dùng cho mọi phần tử của mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
50 — Sắp xếp một mảng kết hợp theo thứ tự giảm dần theo giá trị/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
51 — Sắp xếp một mảng kết hợp theo thứ tự tăng dần theo giá trị/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
52 — Tạo một mảng chứa các biến và giá trị của chúng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
53 — Đếm tất cả các phần tử trong một mảng, hoặc sử dụng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
54/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
55 — Trả về phần tử hiện tại trong một mảng, một giải pháp thay thế là/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
56/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
57 — Trả về cặp khóa và giá trị hiện tại từ một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
58 — Đặt con trỏ bên trong thành phần tử cuối cùng của một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
59 — Nhập các biến từ một mảng vào bảng ký hiệu hiện tại/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
60 — Kiểm tra xem một giá trị có tồn tại trong một mảng không/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
61 — Tìm nạp khóa từ một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
62 — Sắp xếp một mảng kết hợp theo khóa theo thứ tự ngược lại/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
63 — Sắp xếp một mảng kết hợp theo khóa/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
64 — Gán các biến như thể chúng là một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
65 — Sắp xếp một mảng bằng thuật toán “thứ tự tự nhiên” không phân biệt chữ hoa chữ thường/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
66 — Sắp xếp một mảng bằng thuật toán “thứ tự tự nhiên”/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
67 — Nâng cao con trỏ bên trong của một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
68 — Di chuyển con trỏ mảng bên trong về phía sau/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
69 — Tạo một mảng từ nhiều phần tử/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
70 — Đặt con trỏ mảng bên trong thành phần tử đầu tiên của nó/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
71 — Sắp xếp một mảng theo thứ tự đảo ngược/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
72 — Xáo trộn một mảng/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
73 — Sắp xếp một mảng được lập chỉ mục theo thứ tự tăng dần/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
74 — Sắp xếp một mảng bằng hàm so sánh do người dùng xác định/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
75 — Sắp xếp một mảng theo các phím bằng hàm so sánh do người dùng xác định/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
76 — Phân loại mảng theo giá trị bằng hàm so sánh do người dùng xác định
Chuỗi PHP
Trong lập trình, chuỗi lời nói chẳng hơn gì văn bản. Như chúng ta đã giải quyết trước đó, chúng cũng là một giá trị hợp lệ cho các biến
Xác định chuỗi
Trong PHP có một số cách để xác định chuỗi
- Dấu ngoặc đơn - Đây là cách đơn giản nhất. Chỉ cần bọc văn bản của bạn bằng dấu
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
77 và PHP sẽ xử lý nó dưới dạng một chuỗi - Dấu ngoặc kép — Để thay thế, bạn có thể sử dụng
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
78. Khi bạn làm như vậy, có thể sử dụng các ký tự thoát bên dưới để hiển thị các ký tự đặc biệt - heredoc — Bắt đầu một chuỗi bằng
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
79 và một mã định danh, sau đó đặt chuỗi đó vào một dòng mới. Đóng nó trong một dòng khác bằng cách lặp lại mã định danh./* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
80 hoạt động giống như chuỗi trích dẫn kép - nowdoc — Là những gì
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
80 dành cho chuỗi trích dẫn kép nhưng đối với trích dẫn đơn. Nó hoạt động theo cùng một cách và loại bỏ sự cần thiết của các ký tự thoát
Ghi chú. Chuỗi có thể chứa biến, mảng và đối tượng
nhân vật trốn thoát
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
82 — Nguồn cấp dữ liệu/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
83 — Vận chuyển trở lại/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
84 — Tab ngang/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
85 — Tab dọc/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
86 — Trốn thoát/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
87 — Nguồn cấp biểu mẫu/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
88 — Dấu gạch chéo ngược/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
89 — Ký hiệu đô la/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
90 — Trích dẫn đơn/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
91 — Trích dẫn kép/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
92 — Ký tự trong ký hiệu bát phân/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
93 — Ký tự trong ký hiệu thập lục phân/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
94 — Chuỗi dưới dạng biểu diễn UTF-8
Hàm chuỗi
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
95 — Trả về một chuỗi có dấu gạch chéo ngược ở phía trước các ký tự được chỉ định/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
96 — Trả về một chuỗi có dấu gạch chéo ngược phía trước các ký tự cần thoát/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
97 — Chuyển đổi chuỗi ký tự ASCII thành giá trị thập lục phân/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
98 — Xóa dấu cách hoặc các ký tự khác ở đầu bên phải của chuỗi/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
99 — Trả về một ký tự từ một giá trị ASCII đã chỉ định- 00 — Tách một chuỗi thành một chuỗi các phần nhỏ hơn
- 01 — Chuyển đổi một chuỗi từ một bộ ký tự Cyrillic sang một bộ ký tự khác
- 02 — Giải mã một chuỗi được mã hóa
- 03 — Mã hóa chuỗi bằng uuencode
- 04 — Trả về thông tin về các ký tự trong một chuỗi
- 05 — Tính toán CRC 32 bit cho một chuỗi
- 06 — Trả về một chuỗi đã băm
- 07 — Xuất ra một hoặc nhiều chuỗi
- 08 — Chia nhỏ một chuỗi thành một mảng
- 09 — Ghi một chuỗi đã định dạng vào một luồng đầu ra đã chỉ định
- 10 — Trả về bảng dịch được sử dụng bởi 11 và 12
- 13 — Chuyển đổi văn bản tiếng Do Thái thành văn bản trực quan
- 14 — Chuyển đổi văn bản tiếng Do Thái thành văn bản trực quan và thực hiện ngắt dòng HTML
- 15 — Dịch các giá trị thập lục phân sang các ký tự ASCII
- 16 — Biến các thực thể HTML thành các ký tự
- 12 — Chuyển đổi các ký tự thành các thực thể HTML
- 18 — Chuyển đổi các thực thể HTML đặc biệt thành các ký tự
- 11 — Chuyển các ký tự được xác định trước sang các thực thể HTML
- 20 — Lấy một chuỗi từ các phần tử của một mảng, giống như 21
- 22 — Thay đổi ký tự đầu tiên của chuỗi thành chữ thường
- 23 — Tính khoảng cách Levenshtein giữa hai chuỗi
- 24 — Trả về thông tin về định dạng số và tiền tệ cho ngôn ngữ
- 25 — Loại bỏ khoảng trắng hoặc các ký tự khác ở phía bên trái của chuỗi
- 26 — Tính hàm băm MD5 của một chuỗi và trả về giá trị đó
- 27 — Tính hàm băm MD5 của tệp
- 28 — Cung cấp khóa metaphone của một chuỗi
- 29 — Trả về một chuỗi dưới dạng chuỗi tiền tệ
- 30 — Cung cấp thông tin địa phương cụ thể
- 31 — Chèn ngắt dòng HTML cho mỗi dòng mới trong một chuỗi
- 32 — Định dạng một số bao gồm hàng nghìn được nhóm
- 33 — Trả về giá trị ASCII của ký tự đầu tiên của chuỗi
- 34 — Phân tích một chuỗi thành các biến
- 35 — Xuất ra một hoặc nhiều chuỗi
- 36 — Xuất ra một chuỗi được định dạng
- 37 — Chuyển đổi chuỗi có thể in được trích dẫn thành nhị phân 8 bit
- 38 — Chuyển từ chuỗi 8 bit sang chuỗi có thể in được trích dẫn
- 39 — Trả về một chuỗi có dấu gạch chéo ngược trước các ký tự đại diện
- 40 — Loại bỏ khoảng trắng hoặc các ký tự khác ở phía bên phải của chuỗi
- 41 — Đặt thông tin ngôn ngữ
- 42 — Tính hàm băm SHA-1 của chuỗi
- 43 — Tương tự với một tệp
- 44 — Xác định độ giống nhau giữa hai chuỗi
- 45 — Tính khóa soundex của một chuỗi
- 46 — Trả về một chuỗi đã định dạng
- 47 — Phân tích cú pháp đầu vào từ một chuỗi theo định dạng đã chỉ định
- 48 — Phân tích chuỗi CSV thành một mảng
- 49 — Thay thế các ký tự được chỉ định trong một chuỗi bằng các ký tự thay thế được chỉ định [không phân biệt chữ hoa chữ thường]
- 50 — Đệm một chuỗi có độ dài xác định
- 51 — Lặp lại một chuỗi số lần đặt trước
- 52 — Thay thế các ký tự được chỉ định trong một chuỗi [phân biệt chữ hoa chữ thường]
- 53 — Thực hiện mã hóa ROT13 trên một chuỗi
- 54 — Xáo trộn ngẫu nhiên các ký tự trong một chuỗi
- 55 — Chia chuỗi thành mảng
- 56 — Trả về số lượng từ trong một chuỗi
- 57 — So sánh hai chuỗi không phân biệt chữ hoa chữ thường
- 58 — So sánh chuỗi an toàn nhị phân [phân biệt chữ hoa chữ thường]
- 59 — So sánh hai chuỗi dựa trên ngôn ngữ
- 60 — Trả về số lượng ký tự được tìm thấy trong một chuỗi trước khi xuất hiện các ký tự được chỉ định
- 61 — Xóa các thẻ HTML và PHP khỏi một chuỗi
- 62 — Đối lập với
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
95 - 64 — Đối lập với
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
96 - 66 — Tìm vị trí xuất hiện đầu tiên của một chuỗi con trong một chuỗi [không phân biệt chữ hoa chữ thường]
- 67 — Phiên bản không phân biệt chữ hoa chữ thường của 68
- 69 — Trả về độ dài của một chuỗi
- 70 — So sánh hai chuỗi không phân biệt chữ hoa chữ thường bằng thuật toán “thứ tự tự nhiên”
- 71 — Tương tự như đã nói ở trên nhưng phân biệt chữ hoa chữ thường
- 72 — So sánh chuỗi của một số ký tự đã xác định [không phân biệt chữ hoa chữ thường]
- 73 — Tương tự như trên nhưng phân biệt chữ hoa chữ thường
- 74 — Tìm kiếm một chuỗi cho bất kỳ số lượng ký tự nào
- 75 — Trả về vị trí xuất hiện đầu tiên của chuỗi con trong một chuỗi [phân biệt chữ hoa chữ thường]
- 76 — Tìm sự xuất hiện cuối cùng của một chuỗi trong một chuỗi khác
- 77 — Đảo ngược một chuỗi
- 78 — Tìm vị trí xuất hiện cuối cùng của chuỗi con của một chuỗi [không phân biệt chữ hoa chữ thường]
- 79 — Giống như 78 nhưng phân biệt chữ hoa chữ thường
- 81 — Số ký tự trong một chuỗi chỉ có các ký tự từ danh sách đã chỉ định
- 68 — Tìm kiếm phân biệt chữ hoa chữ thường đối với lần xuất hiện đầu tiên của một chuỗi bên trong một chuỗi khác
- 83 — Tách một chuỗi thành các phần nhỏ hơn
- 84 — Chuyển đổi tất cả các ký tự trong chuỗi thành chữ thường
- 85 — Tương tự nhưng đối với chữ in hoa
- 86 — Dịch một số ký tự nhất định trong một chuỗi, thay thế. 87
- 88 — Trả về một phần cụ thể của chuỗi
- 89 — So sánh hai chuỗi từ một vị trí bắt đầu đã chỉ định cho đến một độ dài nhất định, tùy chọn phân biệt chữ hoa chữ thường
- 90 — Đếm số lần một chuỗi con xuất hiện trong một chuỗi
- 91 — Thay thế một chuỗi con bằng một chuỗi khác
- 92 — Xóa dấu cách hoặc các ký tự khác khỏi cả hai phía của chuỗi
- 93 — Chuyển đổi ký tự đầu tiên của chuỗi thành chữ hoa
- 94 — Chuyển đổi ký tự đầu tiên của mỗi từ trong chuỗi thành chữ hoa
- 95 — Ghi một chuỗi đã định dạng vào một luồng đầu ra đã chỉ định
- 96 — Xuất ra một chuỗi được định dạng
- 97 — Ghi một chuỗi đã định dạng vào một biến
- 98 — Rút ngắn chuỗi thành một số ký tự nhất định
Toán tử PHP
Toán tử cho phép bạn thực hiện các thao tác với giá trị, mảng và biến. Có một số loại khác nhau
toán tử số học
toán tử tiêu chuẩn của bạn
- 99 — Bổ sung
function NameOfTheFunction[] { //place PHP code here }
00 — Phép trừfunction NameOfTheFunction[] { //place PHP code here }
01 — Phép nhânfunction NameOfTheFunction[] { //place PHP code here }
02 — Bộ phậnfunction NameOfTheFunction[] { //place PHP code here }
03 — Modulo [phần còn lại của giá trị chia cho giá trị khác]function NameOfTheFunction[] { //place PHP code here }
04 — Lũy thừa
Toán tử gán
Bên cạnh toán tử gán tiêu chuẩn [
0], bạn cũng có các tùy chọn saufunction NameOfTheFunction[] { //place PHP code here }
06 — a += b cũng giống như a = a + bfunction NameOfTheFunction[] { //place PHP code here }
07 — a -= b cũng giống như a = a – bfunction NameOfTheFunction[] { //place PHP code here }
08 — a *= b cũng giống như a = a * bfunction NameOfTheFunction[] { //place PHP code here }
09 — a /= b giống như a = a / bfunction NameOfTheFunction[] { //place PHP code here }
10 — a %= b giống với a = a % b
Toán tử so sánh
function NameOfTheFunction[] { //place PHP code here }
11 — Bình đẳngfunction NameOfTheFunction[] { //place PHP code here }
12 — Giống nhaufunction NameOfTheFunction[] { //place PHP code here }
13 — Không bằngfunction NameOfTheFunction[] { //place PHP code here }
14 — Không bằngfunction NameOfTheFunction[] { //place PHP code here }
15 — Không giống nhaufunction NameOfTheFunction[] { //place PHP code here }
16 — Ít hơnfunction NameOfTheFunction[] { //place PHP code here }
17 — Lớn hơnfunction NameOfTheFunction[] { //place PHP code here }
18 — Nhỏ hơn hoặc bằngfunction NameOfTheFunction[] { //place PHP code here }
19 — Lớn hơn hoặc bằngfunction NameOfTheFunction[] { //place PHP code here }
20 — Nhỏ hơn, bằng hoặc lớn hơn
Toán tử logic
function NameOfTheFunction[] { //place PHP code here }
21 — Vàfunction NameOfTheFunction[] { //place PHP code here }
22 — Hoặcfunction NameOfTheFunction[] { //place PHP code here }
23 — Độc quyền hoặcfunction NameOfTheFunction[] { //place PHP code here }
24 — Không phảifunction NameOfTheFunction[] { //place PHP code here }
25 — Vàfunction NameOfTheFunction[] { //place PHP code here }
26 — Hoặc
toán tử Bitwise
function NameOfTheFunction[] { //place PHP code here }
27 — Vàfunction NameOfTheFunction[] { //place PHP code here }
28 — Hoặc [bao gồm hoặc]function NameOfTheFunction[] { //place PHP code here }
29 — Xor [độc quyền hoặc]function NameOfTheFunction[] { //place PHP code here }
30 — Không phảifunction NameOfTheFunction[] { //place PHP code here }
31 — Sang tráifunction NameOfTheFunction[] { //place PHP code here }
32 — Sang phải
Toán tử kiểm soát lỗi
Bạn có thể sử dụng dấu
function NameOfTheFunction[] { //place PHP code here }33 để ngăn các biểu thức tạo thông báo lỗi. Điều này thường quan trọng vì lý do bảo mật, chẳng hạn như để giữ an toàn cho thông tin bí mật
Toán tử thực thi
PHP hỗ trợ một toán tử thực thi, đó là
function NameOfTheFunction[] { //place PHP code here }34 [backticks]. Đây không phải là dấu nháy đơn. PHP sẽ cố gắng thực thi nội dung của backticks dưới dạng lệnh shell
Toán tử tăng/giảm
function NameOfTheFunction[] { //place PHP code here }
35 — Tăng một biến, sau đó trả về nófunction NameOfTheFunction[] { //place PHP code here }
36 — Trả về một biến, sau đó tăng giá trị đó lên mộtfunction NameOfTheFunction[] { //place PHP code here }
37 — Giảm biến đi một, trả về sau đófunction NameOfTheFunction[] { //place PHP code here }
38 — Trả về biến rồi giảm nó đi một
Toán tử chuỗi
function NameOfTheFunction[] { //place PHP code here }
39 — Được sử dụng để nối [có nghĩa là kết hợp] đối sốfunction NameOfTheFunction[] { //place PHP code here }
40 — Được sử dụng để nối đối số bên phải với đối số bên trái
Vòng lặp trong PHP
Vòng lặp rất phổ biến trong lập trình. Chúng cho phép bạn chạy qua cùng một khối mã trong các trường hợp khác nhau. PHP có một số cái khác nhau
cho vòng lặp
Loại này đi qua một khối mã một số lần xác định
for [starting counter value; ending counter value; increment by which to increase] { // code to execute goes here }
vòng lặp foreach
Một vòng lặp sử dụng
function NameOfTheFunction[] { //place PHP code here }41 chạy qua từng phần tử trong một mảng
foreach [$InsertYourArrayName as $value] { // code to execute goes here }
Trong khi lặp lại
Lặp qua một khối mã miễn là một điều kiện được chỉ định là đúng
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */0
Vòng lặp Do…While
Vòng lặp PHP cuối cùng chạy một đoạn mã một lần, sau đó lặp lại vòng lặp miễn là điều kiện đã cho là đúng
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */1
Câu điều kiện
Câu lệnh if/else tương tự như vòng lặp. Chúng là những câu lệnh chỉ chạy mã trong những trường hợp nhất định. Bạn có một số tùy chọn
Tuyên bố nếu
Thực thi mã nếu một điều kiện là đúng
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */2
Nếu khác
Chạy một đoạn mã nếu một điều kiện là đúng và một đoạn mã khác nếu nó không đúng
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */3
Nếu…Khác…Khác
Thực thi các đoạn mã khác nhau cho nhiều hơn hai điều kiện
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */4
Tuyên bố chuyển đổi
Chọn một trong nhiều khối mã để thực thi
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */5
Làm việc với Form trong PHP
PHP thường được sử dụng để xử lý các biểu mẫu web. Cụ thể,
function myFunction[] { global $a, $b; $b = $a - $b; }1 và
function myFunction[] { global $a, $b; $b = $a - $b; }2 đã nói ở trên giúp thu thập dữ liệu được gửi qua biểu mẫu. Cả hai đều có thể bắt các giá trị từ các trường đầu vào, tuy nhiên, cách sử dụng của chúng khác nhau
Sử dụng GET so với POST
GET thu thập dữ liệu thông qua các tham số URL. Điều đó có nghĩa là tất cả các tên biến và giá trị của chúng được chứa trong địa chỉ trang
Ưu điểm của việc này là bạn có thể đánh dấu thông tin. Hãy nhớ rằng điều đó cũng có nghĩa là thông tin hiển thị với mọi người. Vì lý do đó, GET không phù hợp với thông tin nhạy cảm như mật khẩu. Nó cũng giới hạn lượng dữ liệu có thể được gửi trong khoảng 2000 ký tự
Mặt khác, POST sử dụng phương thức HTTP POST để truyền các biến. Điều này làm cho dữ liệu không nhìn thấy được đối với bên thứ ba, vì dữ liệu được gửi trong phần thân HTTP. Bạn không thể đánh dấu nó
Với POST, không có giới hạn về lượng thông tin bạn có thể gửi. Bên cạnh đó, nó cũng có chức năng nâng cao và do đó được các nhà phát triển ưa thích hơn
bảo mật mẫu
Vấn đề quan trọng nhất khi nói đến các biểu mẫu web là bảo mật. Nếu không được thiết lập đúng cách, chúng dễ bị tấn công theo kịch bản chéo. Tin tặc thêm tập lệnh vào các biểu mẫu web không bảo mật để sử dụng chúng cho mục đích riêng của chúng
PHP cũng cung cấp các công cụ để ngăn chặn các cuộc tấn công đó, cụ thể là
- 11
- 92
- 64
Bạn sẽ nhận thấy rằng chúng ta đã gặp tất cả các chức năng này trong phần trước về chuỗi. Khi bạn đưa chúng vào tập lệnh thu thập dữ liệu biểu mẫu, bạn có thể loại bỏ hiệu quả các tập lệnh có hại khỏi các ký tự mà chúng cần để hoạt động, khiến chúng không sử dụng được
Các trường bắt buộc, thông báo lỗi và xác thực dữ liệu
Ngoài ra, PHP có thể xác định các trường bắt buộc [bạn không thể gửi biểu mẫu mà không điền vào chúng], hiển thị thông báo lỗi nếu một số thông tin bị thiếu và để xác thực dữ liệu. Chúng tôi đã nói về các công cụ cần thiết để làm như vậy
Ví dụ: bạn có thể chỉ cần xác định các biến cho các trường biểu mẫu của mình và sử dụng hàm
function NameOfTheFunction[] { //place PHP code here }47 để kiểm tra xem chúng có giá trị hay không. Sau đó, tạo một câu lệnh if/else đơn giản để gửi dữ liệu đã gửi hoặc xuất thông báo lỗi
Bước tiếp theo là kiểm tra tính hợp lệ của dữ liệu đã gửi. Vì vậy, PHP cung cấp một số bộ lọc như
function NameOfTheFunction[] { //place PHP code here }48 để đảm bảo địa chỉ email đã gửi có định dạng phù hợp
Biểu thức chính quy [RegEx]
cú pháp
function NameOfTheFunction[] { //place PHP code here }49
Hàm RegEx
function NameOfTheFunction[] { //place PHP code here }50
Trả về 1 nếu mẫu được tìm thấy trong chuỗi và 0 nếu không
function NameOfTheFunction[] { //place PHP code here }51
Trả về số lần mẫu được tìm thấy trong chuỗi, cũng có thể là 0
function NameOfTheFunction[] { //place PHP code here }52
Trả về một chuỗi mới trong đó các mẫu phù hợp đã được thay thế bằng một chuỗi khác
Công cụ sửa đổi RegEx
function NameOfTheFunction[] { //place PHP code here }53
Thực hiện tìm kiếm không phân biệt chữ hoa chữ thường
function NameOfTheFunction[] { //place PHP code here }54
Thực hiện tìm kiếm nhiều dòng [các mẫu tìm kiếm phần đầu hoặc phần cuối của chuỗi sẽ khớp với phần đầu hoặc phần cuối của mỗi dòng]
function NameOfTheFunction[] { //place PHP code here }55
Cho phép khớp chính xác các mẫu được mã hóa UTF-8
Mẫu RegEx
function NameOfTheFunction[] { //place PHP code here }56 – Tìm một ký tự từ các tùy chọn giữa các dấu ngoặc
function NameOfTheFunction[] { //place PHP code here }57 – Tìm bất kỳ ký tự nào KHÔNG nằm trong dấu ngoặc
function NameOfTheFunction[] { //place PHP code here }58 – Tìm một ký tự trong phạm vi từ 0 đến 9
Siêu ký tự
function NameOfTheFunction[] { //place PHP code here }28
Tìm một kết quả phù hợp cho bất kỳ một trong các mẫu được phân tách bằng. như trong. con mèo. chú chó. cá
function NameOfTheFunction[] { //place PHP code here }39
Chỉ tìm một phiên bản của bất kỳ ký tự nào
function NameOfTheFunction[] { //place PHP code here }29
Tìm một kết quả khớp ở đầu chuỗi như trong. ^Xin chào
function NameOfTheFunction[] { //place PHP code here }9
Tìm một kết quả khớp ở cuối chuỗi như trong. thế giới$
function NameOfTheFunction[] { //place PHP code here }63
Tìm một chữ số
function NameOfTheFunction[] { //place PHP code here }64
Tìm ký tự khoảng trắng
function NameOfTheFunction[] { //place PHP code here }65
Tìm một từ phù hợp ở đầu một từ như thế này. \bWORD hoặc ở cuối từ như thế này. TỪ\b
function NameOfTheFunction[] { //place PHP code here }66
Tìm ký tự Unicode được chỉ định bởi số thập lục phân xxxx
định lượng
function NameOfTheFunction[] { //place PHP code here }67
Khớp với bất kỳ chuỗi nào chứa ít nhất một n
function NameOfTheFunction[] { //place PHP code here }68
Khớp với bất kỳ chuỗi nào chứa 0 hoặc nhiều lần xuất hiện của n
function NameOfTheFunction[] { //place PHP code here }69
So khớp bất kỳ chuỗi nào chứa 0 hoặc 1 lần xuất hiện của n
function NameOfTheFunction[] { //place PHP code here }70
Khớp với bất kỳ chuỗi nào chứa một chuỗi X n
function NameOfTheFunction[] { //place PHP code here }71
So khớp với bất kỳ chuỗi nào chứa chuỗi từ X đến Y n
function NameOfTheFunction[] { //place PHP code here }72
Khớp với bất kỳ chuỗi nào chứa một chuỗi ít nhất X n
nhóm
Sử dụng dấu ngoặc đơn [ ] để áp dụng bộ định lượng cho toàn bộ mẫu. Chúng cũng có thể được sử dụng để chọn các phần của mẫu được sử dụng làm đối sánh
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */6
Hàm PHP
- Hàm là một khối câu lệnh có thể được sử dụng lặp đi lặp lại trong một chương trình
- Một chức năng sẽ không tự động thực thi khi tải trang
- Một chức năng sẽ được thực hiện bởi một lời gọi đến chức năng
cú pháp
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */7
Đối số chức năng
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */8
Giá trị đối số mặc định
/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */9
Trả về giá trị
0Bộ lọc PHP
Bộ lọc được sử dụng để xác thực và lọc dữ liệu đến từ các nguồn không an toàn. Như đã đề cập, một ví dụ phổ biến là đầu vào của người dùng. PHP cung cấp một số hàm lọc và hằng số cho điều đó
Chức năng lọc
function NameOfTheFunction[] { //place PHP code here }
73 — Kiểm tra xem có tồn tại một biến thuộc loại đã chỉ định hay khôngfunction NameOfTheFunction[] { //place PHP code here }
74 — Trả về ID thuộc bộ lọc đã đặt tênfunction NameOfTheFunction[] { //place PHP code here }
75 — Truy xuất một biến bên ngoài được chỉ định theo tên và tùy chọn lọc biến đófunction NameOfTheFunction[] { //place PHP code here }
76 — Kéo các biến bên ngoài và tùy ý lọc chúngfunction NameOfTheFunction[] { //place PHP code here }
77 — Trả về danh sách tất cả các bộ lọc được hỗ trợfunction NameOfTheFunction[] { //place PHP code here }
78 — Nhận nhiều biến và tùy chọn lọc chúngfunction NameOfTheFunction[] { //place PHP code here }
79 — Lọc một biến bằng bộ lọc được chỉ định
Hằng số bộ lọc
function NameOfTheFunction[] { //place PHP code here }
80 — Xác thực giá trị booleanfunction NameOfTheFunction[] { //place PHP code here }
48 — Xác nhận địa chỉ e-mailfunction NameOfTheFunction[] { //place PHP code here }
82 — Xác nhận thả nổifunction NameOfTheFunction[] { //place PHP code here }
83 — Xác minh một số nguyênfunction NameOfTheFunction[] { //place PHP code here }
84 — Xác thực địa chỉ IPfunction NameOfTheFunction[] { //place PHP code here }
85 — Xác nhận biểu thức chính quyfunction NameOfTheFunction[] { //place PHP code here }
86 — Xác thực một URLfunction NameOfTheFunction[] { //place PHP code here }
87 — Xóa tất cả các ký tự không hợp lệ khỏi địa chỉ emailfunction NameOfTheFunction[] { //place PHP code here }
88 — Xóa/Mã hóa các ký tự đặc biệtfunction NameOfTheFunction[] { //place PHP code here }
89 — Áp dụng cho/* Theme Name: Twenty Seventeen Theme URI: //wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: //wordpress.org/ Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. Version: 1.5 License: GNU General Public License v2 or later License URI: //www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */
96function NameOfTheFunction[] { //place PHP code here }
91 — Xóa tất cả ký tự, ngoại trừ chữ số, +- và. ,eEfunction NameOfTheFunction[] { //place PHP code here }
92 — Loại bỏ tất cả ký tự ngoại trừ chữ số và + –function NameOfTheFunction[] { //place PHP code here }
93 — Loại bỏ các ký tự đặc biệtfunction NameOfTheFunction[] { //place PHP code here }
94 — Chuyển đổi các ký tự đặc biệt thành các thực thể HTMLfunction NameOfTheFunction[] { //place PHP code here }
95 — Xóa thẻ/ký tự đặc biệt khỏi chuỗi, thay thế.function NameOfTheFunction[] { //place PHP code here }
96function NameOfTheFunction[] { //place PHP code here }
97 — Loại bỏ tất cả các ký tự không hợp lệ khỏi URLfunction NameOfTheFunction[] { //place PHP code here }
98 —Không làm gì cả, tùy chọn loại bỏ/mã hóa các ký tự đặc biệtfunction NameOfTheFunction[] { //place PHP code here }
99 — Gọi hàm do người dùng xác định để lọc dữ liệu
Hàm HTTP trong PHP
PHP cũng có chức năng thao tác với dữ liệu được gửi đến trình duyệt từ máy chủ web
Hàm HTTP
- 00 — Gửi tiêu đề HTTP thô tới trình duyệt
- 01 — Danh sách các tiêu đề phản hồi sẵn sàng gửi [hoặc đã gửi]
- 02 — Kiểm tra xem các tiêu đề HTTP đã được gửi chưa và ở đâu
- 03 — Xác định cookie sẽ được gửi cùng với phần còn lại của tiêu đề HTTP
- 04 — Xác định cookie [không mã hóa URL] sẽ được gửi cùng
Làm việc với MySQL
Nhiều nền tảng dựa trên PHP hoạt động với cơ sở dữ liệu MySQL ở chế độ nền. Vì lý do đó, điều quan trọng là phải làm quen với các chức năng cho phép bạn làm việc với chúng
Hàm MySQL
- 05 — Số lượng hàng bị ảnh hưởng trong hoạt động MySQL trước đó
- 06 — Bật hoặc tắt sửa đổi cơ sở dữ liệu tự động cam kết
- 07 — Thay đổi người dùng của kết nối cơ sở dữ liệu được chỉ định
- 08 — Bộ ký tự mặc định cho kết nối cơ sở dữ liệu
- 09 — Đóng kết nối cơ sở dữ liệu đang mở
- 10 — Cam kết giao dịch hiện tại
- 11 — Mã lỗi từ lỗi kết nối cuối cùng
- 12 — Mô tả lỗi từ lỗi kết nối cuối cùng
- 13 — Mở một kết nối mới đến máy chủ MySQL
- 14 — Di chuyển con trỏ kết quả đến một hàng tùy ý trong tập hợp kết quả
- 15 — Thực hiện các hoạt động sửa lỗi
- 16 — Kết xuất thông tin gỡ lỗi vào nhật ký
- 17 — Mã lỗi cuối cùng cho lệnh gọi hàm gần đây nhất
- 18 — Danh sách các lỗi cho lệnh gọi hàm gần đây nhất
- 19 — Mô tả lỗi cuối cùng cho lệnh gọi hàm gần đây nhất
- 20 — Fetches all result rows as an array
- 21 — Fetches a result row as an associative, a numeric array, or both
- 22 — Fetches a result row as an associative array
- 23 — Metadata for a single field as an object
- 24 — The next field in the result set as an object
- 25 — An array of objects that represent the fields in a result set
- 26 — The lengths of the columns of the current row in the result set
- 27 — The current row of a result set as an object
- 28 — Fetches one row from a result set and returns it as an enumerated array
- 29 — The number of columns for the most recent query
- 30 — Sets the field cursor to the given field offset
- 31 — The position of the field cursor
- 32 — Frees the memory associated with a result
- 33 — A character set object
- 34 — The MySQL client library version
- 35 — Trả về số liệu thống kê theo quy trình của khách hàng
- 36 — The MySQL client library version as an integer
- 37 — Statistics about the client connection
- 38 — The MySQL server hostname and the connection type
- 39 — The MySQL protocol version
- 40 — Returns the MySQL server version
- 41 — The MySQL server version as an integer
- 42 — Trả về thông tin về truy vấn được thực hiện gần đây nhất
- 43 — Initializes MySQLi and returns a resource for use with 44
- 45 — Returns the auto-generated ID used in the last query
- 46 — Asks the server to kill a MySQL thread
- 47 — Checks if there are more results from a multi-query
- 48 — Performs one or more queries on the database
- 49 — Prepares the next result set from 48
- 51 — The number of fields in a result set
- 52 — The number of rows in a result set
- 53 — Sets extra connect options and affect behavior for a connection
- 54 — Pings a server connection or tries to reconnect if it has gone down
- 55 — Prepares an SQL statement for execution
- 56 — Performs a query against the database
- 44 — Opens a new connection to the MySQL server
- 58 — Escapes special characters in a string for use in an SQL statement
- 59 — Executes an SQL query
- 60 — Returns the result from async query
- 61 — Refreshes tables or caches or resets the replication server information
- 62 — Rolls back the current transaction for the database
- 63 — Changes the default database for the connection
- 64 — Sets the default client character set
- 65 — Unsets a user-defined handler for the LOAD LOCAL INFILE command
- 66 — Sets a callback function for the LOAD DATA LOCAL INFILE command
- 67 — Returns the SQLSTATE error code for the last MySQL operation
- 68 — Establishes secure connections using SSL
- 69 — The current system status
- 70 — Initializes a statement and returns an object for use with 71
- 72 — Transfers a result set from the last query
- 73 — The thread ID for the current connection
- 74 — Returns if the client library is compiled as thread-safe
- 75 — Initiates the retrieval of a result set from the last query executed using the 59
- 77 — The number of warnings from the last query in the connection
Date and Time
Of course, PHP functions for date and time should not be missing from any PHP cheat sheet
Date/Time Functions
- 78 — Checks the validity of a Gregorian date
- 79 — Adds a number of days, months, years, hours, minutes and seconds to a date object
- 80 — Returns a formatted DateTime object
- 81 — Creates a new DateTime object
- 82 — Sets a new date
- 83 — Returns the default timezone used by all functions
- 84 — Sets the default timezone
- 85 — Calculates the difference between two dates
- 86 — Returns a date formatted according to a specific format
- 87 — Returns warnings or errors found in a date string
- 88 — Sets up a DateInterval from relative parts of a string
- 89 — Formats an interval
- 90 — Sets a date according to ISO 8601 standards
- 91 — Modifies the timestamp
- 92 — Returns the offset of the timezone
- 93 — Returns an array with detailed information about a specified date, according to a specified format
- 94 — Returns an array with detailed information about a specified date
- 95 — Subtracts days, months, years, hours, minutes and seconds from a date
- 96 — Returns an array containing information about sunset/sunrise and twilight begin/end for a specified day and location
- 97 — The sunrise time for a specified day and location
- 98 — The sunset time for a specified day and location
- 99 — Sets the time
function myFunction[] { global $a, $b; $b = $a - $b; }
00 — Returns the Unix timestampfunction myFunction[] { global $a, $b; $b = $a - $b; }
01 — Sets the date and time based on a Unix timestampfunction myFunction[] { global $a, $b; $b = $a - $b; }
02 — Returns the time zone of a given DateTime objectfunction myFunction[] { global $a, $b; $b = $a - $b; }
03 — Sets the time zone for a DateTime objectfunction myFunction[] { global $a, $b; $b = $a - $b; }
04 — Formats a local date and timefunction myFunction[] { global $a, $b; $b = $a - $b; }
05 — Date/time information of a timestamp or the current local date/timefunction myFunction[] { global $a, $b; $b = $a - $b; }
06 — The current timefunction myFunction[] { global $a, $b; $b = $a - $b; }
07 — Formats a GMT/UTC date and timefunction myFunction[] { global $a, $b; $b = $a - $b; }
08 — The Unix timestamp for a GMT datefunction myFunction[] { global $a, $b; $b = $a - $b; }
09 — Formats a GMT/UTC date and time according to locale settingsfunction myFunction[] { global $a, $b; $b = $a - $b; }
10 — Formats a local time/date as an integerfunction myFunction[] { global $a, $b; $b = $a - $b; }
11 — The local timefunction myFunction[] { global $a, $b; $b = $a - $b; }
12 — The current Unix timestamp with microsecondsfunction myFunction[] { global $a, $b; $b = $a - $b; }
13 — The Unix timestamp for a datefunction myFunction[] { global $a, $b; $b = $a - $b; }
14 — Formats a local time and/or date according to locale settingsfunction myFunction[] { global $a, $b; $b = $a - $b; }
15 — Parses a time/date generated withfunction myFunction[] { global $a, $b; $b = $a - $b; }
14function myFunction[] { global $a, $b; $b = $a - $b; }
17 - Chuyển đổi DateTime văn bản tiếng Anh thành dấu thời gian Unixfunction myFunction[] { global $a, $b; $b = $a - $b; }
18 — The current time as a Unix timestampfunction myFunction[] { global $a, $b; $b = $a - $b; }
19 — Returns an array containing dst, offset, and the timezone namefunction myFunction[] { global $a, $b; $b = $a - $b; }
20 — An indexed array with all timezone identifiersfunction myFunction[] { global $a, $b; $b = $a - $b; }
21 — Location information for a specified timezonefunction myFunction[] { global $a, $b; $b = $a - $b; }
22 — Returns the timezone name from an abbreviationfunction myFunction[] { global $a, $b; $b = $a - $b; }
23 — The name of the timezonefunction myFunction[] { global $a, $b; $b = $a - $b; }
24 — The timezone offset from GMTfunction myFunction[] { global $a, $b; $b = $a - $b; }
25 — Creates a new DateTimeZone objectfunction myFunction[] { global $a, $b; $b = $a - $b; }
26 — Returns all transitions for the timezonefunction myFunction[] { global $a, $b; $b = $a - $b; }
27 — Returns the version of the timezonedb
Date and Time Formatting
function myFunction[] { global $a, $b; $b = $a - $b; }
28 — 01 to 31function myFunction[] { global $a, $b; $b = $a - $b; }
29 — 1 to 31function myFunction[] { global $a, $b; $b = $a - $b; }
30 — Mon through Sunfunction myFunction[] { global $a, $b; $b = $a - $b; }
31 — Sunday through Saturdayfunction myFunction[] { global $a, $b; $b = $a - $b; }
32 — 1 [for Mon] through 7 [for Sat]function myFunction[] { global $a, $b; $b = $a - $b; }
33 — 0 [for Sun] through 6 [for Sat]function NameOfTheFunction[] { //place PHP code here }
54 — Months, 01 through 12function myFunction[] { global $a, $b; $b = $a - $b; }
35 — Months, 1 through 12function myFunction[] { global $a, $b; $b = $a - $b; }
36 — January through Decemberfunction myFunction[] { global $a, $b; $b = $a - $b; }
37 — Jan through Decfunction myFunction[] { global $a, $b; $b = $a - $b; }
38 — Four digits year [e. g. 2018]function myFunction[] { global $a, $b; $b = $a - $b; }
39 — Two digits year [e. g. 18]function myFunction[] { global $a, $b; $b = $a - $b; }
40 — Defines whether it’s a leap year [1 or 0]function myFunction[] { global $a, $b; $b = $a - $b; }
41 — am and pmfunction myFunction[] { global $a, $b; $b = $a - $b; }
42 — AM and PMfunction myFunction[] { global $a, $b; $b = $a - $b; }
43 — Hours 1 through 12function myFunction[] { global $a, $b; $b = $a - $b; }
44 — Hours 01 through 12function myFunction[] { global $a, $b; $b = $a - $b; }
45 — Hours 0 through 23function myFunction[] { global $a, $b; $b = $a - $b; }
46 — Hours 00 through 23function NameOfTheFunction[] { //place PHP code here }
53 — Minutes 00 to 59function myFunction[] { global $a, $b; $b = $a - $b; }
48 — Seconds 00 to 59
PHP Errors
Finally, for the times that things don’t go smoothly and you need to find out where the problem lies, PHP also offers functionality for errors
Error Functions
function myFunction[] { global $a, $b; $b = $a - $b; }
49 — Used to generate a backtracefunction myFunction[] { global $a, $b; $b = $a - $b; }
50 — Prints a backtracefunction myFunction[] { global $a, $b; $b = $a - $b; }
51 — Gets the last error that occurredfunction myFunction[] { global $a, $b; $b = $a - $b; }
52 — Sends an error message to the web server’s log, a file or a mail accountfunction myFunction[] { global $a, $b; $b = $a - $b; }
53 — Specifies which PHP errors are reportedfunction myFunction[] { global $a, $b; $b = $a - $b; }
54 — Reverts to the previous error handler functionfunction myFunction[] { global $a, $b; $b = $a - $b; }
55 — Goes back to the previous exception handlerfunction myFunction[] { global $a, $b; $b = $a - $b; }
56 — Sets a user-defined function to handle script errorsfunction myFunction[] { global $a, $b; $b = $a - $b; }
57 — Sets an exception handler function defined by the userfunction myFunction[] { global $a, $b; $b = $a - $b; }
58 — Generates a user-level error message, you can also usefunction myFunction[] { global $a, $b; $b = $a - $b; }
59
Hằng số lỗi
function myFunction[] { global $a, $b; $b = $a - $b; }
60 — Các lỗi thời gian chạy nghiêm trọng khiến tập lệnh bị tạm dừng và không thể khôi phục được từfunction myFunction[] { global $a, $b; $b = $a - $b; }
61 — Non-fatal run-time errors, execution of the script continuesfunction myFunction[] { global $a, $b; $b = $a - $b; }
62 — Lỗi phân tích cú pháp thời gian biên dịch, chỉ nên được tạo bởi trình phân tích cú phápfunction myFunction[] { global $a, $b; $b = $a - $b; }
63 — Run-time notices that indicate a possible errorfunction myFunction[] { global $a, $b; $b = $a - $b; }
64 — Fatal errors at PHP initialization, like anfunction myFunction[] { global $a, $b; $b = $a - $b; }
60 in PHP corefunction myFunction[] { global $a, $b; $b = $a - $b; }
66 — Non-fatal errors at PHP startup, similar tofunction myFunction[] { global $a, $b; $b = $a - $b; }
61 but in PHP corefunction myFunction[] { global $a, $b; $b = $a - $b; }
68 — Lỗi nghiêm trọng trong thời gian biên dịch do Zend Scripting Engine tạo rafunction myFunction[] { global $a, $b; $b = $a - $b; }
69 — Lỗi thời gian biên dịch không nghiêm trọng của Zend Scripting Enginefunction myFunction[] { global $a, $b; $b = $a - $b; }
70 — Lỗi nghiêm trọng do người dùng tạo, do lập trình viên đặt bằng cách sử dụngfunction myFunction[] { global $a, $b; $b = $a - $b; }
58function myFunction[] { global $a, $b; $b = $a - $b; }
72 — Cảnh báo không nghiêm trọng do người dùng tạofunction myFunction[] { global $a, $b; $b = $a - $b; }
73 — Thông báo do người dùng tạo bởifunction myFunction[] { global $a, $b; $b = $a - $b; }
58function myFunction[] { global $a, $b; $b = $a - $b; }
75 — Đề xuất của PHP để cải thiện mã của bạn [cần được bật]function myFunction[] { global $a, $b; $b = $a - $b; }
76 — Lỗi nghiêm trọng có thể bắt được do bộ điều khiển do người dùng xác định bắt đượcfunction myFunction[] { global $a, $b; $b = $a - $b; }
77 — Kích hoạt tính năng này để nhận cảnh báo về mã không phải là bằng chứng trong tương laifunction myFunction[] { global $a, $b; $b = $a - $b; }
78 — Cảnh báo do người dùng tạo đối với mã không dùng nữafunction myFunction[] { global $a, $b; $b = $a - $b; }
79 — Tất cả các lỗi và cảnh báo ngoại trừfunction myFunction[] { global $a, $b; $b = $a - $b; }
75
Phần kết luận
Biết cách của bạn xung quanh PHP là một ý tưởng hay cho bất kỳ ai quan tâm đến thiết kế web và phát triển web. Đặc biệt nếu bạn muốn tìm hiểu sâu hơn về các khía cạnh kỹ thuật của việc tạo trang web của riêng mình
Bảng cheat PHP ở trên cung cấp cho bạn tổng quan về một số phần trung tâm của PHP. Đánh dấu nó làm tài liệu tham khảo hoặc sử dụng nó làm bàn đạp để tìm hiểu thêm về ngôn ngữ lập trình. Chúng tôi chân thành hy vọng bạn đã tìm thấy nó một nguồn tài nguyên hữu ích