Hướng dẫn PHP

TRANG CHỦ PHP Giới thiệu PHP Cài đặt PHP Cú pháp PHP Nhận xét PHP Các biến PHP PHP Echo / Print Các kiểu dữ liệu PHP Chuỗi PHP Số PHP Toán PHP Hằng số PHP Toán tử PHP PHP If ... Else ... Elseif Chuyển đổi PHP Vòng lặp PHP Các hàm PHP Mảng PHP PHP Superglobals PHP RegEx

Biểu mẫu PHP

Xử lý biểu mẫu PHP Xác thực biểu mẫu PHP Yêu cầu biểu mẫu PHP URL biểu mẫu PHP / E-mail Hoàn thành biểu mẫu PHP

PHP nâng cao

Ngày và giờ trong PHP Bao gồm PHP Xử lý tệp PHP Mở / Đọc tệp PHP Tạo / ghi tệp PHP Tải lên tệp PHP Cookie PHP Phiên PHP Bộ lọc PHP Bộ lọc PHP nâng cao Các chức năng gọi lại trong PHP PHP JSON Ngoại lệ PHP

PHP OOP

PHP OOP là gì Các lớp / đối tượng PHP Trình tạo PHP PHP Destructor Công cụ sửa đổi quyền truy cập PHP Kế thừa PHP Hằng số PHP Các lớp trừu tượng trong PHP Giao diện PHP Đặc điểm PHP Phương thức tĩnh trong PHP Thuộc tính tĩnh của PHP Không gian tên PHP Lặp lại PHP

Cơ sở dữ liệu MySQL

Cơ sở dữ liệu MySQL MySQL Connect MySQL Tạo cơ sở dữ liệu MySQL Tạo bảng MySQL Chèn dữ liệu MySQL Nhận ID cuối cùng MySQL Chèn Nhiều MySQL được chuẩn bị Dữ liệu chọn MySQL MySQL ở đâu MySQL Đặt hàng bởi MySQL Xóa dữ liệu Dữ liệu cập nhật MySQL Dữ liệu giới hạn MySQL

PHP XML

Trình phân tích cú pháp XML PHP Trình phân tích cú pháp PHP SimpleXML PHP SimpleXML - Nhận PHP XML Expat DOM XML PHP

PHP - AJAX

Giới thiệu về AJAX AJAX PHP Cơ sở dữ liệu AJAX AJAX XML Tìm kiếm trực tiếp AJAX Cuộc thăm dò ý kiến ​​của AJAX

Ví dụ về PHP

Ví dụ về PHP Trình biên dịch PHP PHP Quiz Bài tập PHP Chứng chỉ PHP

Tham chiếu PHP

Tổng quan về PHP Mảng PHP Lịch PHP Ngày PHP Thư mục PHP Lỗi PHP Ngoại lệ PHP Hệ thống tập tin PHP Bộ lọc PHP FTP PHP PHP JSON Từ khóa PHP PHP Libxml Thư PHP Toán PHP PHP Misc PHP MySQLi Mạng PHP Kiểm soát đầu ra PHP PHP RegEx PHP SimpleXML Luồng PHP Chuỗi PHP Xử lý biến PHP Trình phân tích cú pháp XML PHP PHP Zip Múi giờ PHP

Các chức năng xử lý biến trong PHP


Các chức năng xử lý biến trong PHP

Các hàm xử lý biến PHP là một phần của lõi PHP. Không cần cài đặt để sử dụng các chức năng này.

Function Description
boolval() Returns the boolean value of a variable
debug_zval_dump() Dumps a string representation of an internal zend value to output
doubleval() Alias of floatval()
empty() Checks whether a variable is empty
floatval() Returns the float value of a variable
get_defined_vars() Returns all defined variables, as an array
get_resource_type() Returns the type of a resource
gettype() Returns the type of a variable
intval() Returns the integer value of a variable
is_array() Checks whether a variable is an array
is_bool() Checks whether a variable is a boolean
is_callable() Checks whether the contents of a variable can be called as a function
is_countable() Checks whether the contents of a variable is a countable value
is_double() Alias of is_float()
is_float() Checks whether a variable is of type float
is_int() Checks whether a variable is of type integer
is_integer() Alias of is_int()
is_iterable() Checks whether the contents of a variable is an iterable value
is_long() Alias of is_int()
is_null() Checks whether a variable is NULL
is_numeric() Checks whether a variable is a number or a numeric string
is_object() Checks whether a variable is an object
is_real() Alias of is_float()
is_resource() Checks whether a variable is a resource
is_scalar() Checks whether a variable is a scalar
is_string() Checks whether a variable is of type string
isset() Checks whether a variable is set (declared and not NULL)
print_r() Prints the information about a variable in a human-readable way
serialize() Converts a storable representation of a value
settype() Converts a variable to a specific type
strval() Returns the string value of a variable
unserialize() Converts serialized data back into actual data
unset() Unsets a variable
var_dump() Dumps information about one or more variables
var_export() Returns structured information (valid PHP code) about a variable