search
HomeBackend DevelopmentPHP7Detailed introduction to common extensions in php

php extensions are mainly divided into two categories: php module extensions and zend module extensions. Below, the editor will introduce to you the php module extension and zend module extension. You can refer to it if necessary.

Detailed introduction to common extensions in php

php extensions are mainly divided into two categories: php module extensions and zend module extensions. The relevant functions are as follows:

[PHP Modules]

bz2

is used to read and write bzip2 transparently ( .bz2) compressed file.

calendar

calendar

http://php.net/manual/zh/intro.calendar.php

ctype

Character detection

http://php.net/manual/zh/book.ctype.php

curl

Supports the libcurl library created by Daniel Stenberg, which can connect and communicate with various servers and use various protocols.

#date

Date

dom

The dom extension allows you to use php via the dom api in xml Operate on the document.

exif

Exchangeable image information

http://php.net/manual/zh/book.exif.php

fileinfo

It applies to improvements in file handling.

filter

File filtering

ftp

Provides access to files via File Transfer Protocol (FTP) Client access to the server

gd

Image generation and processing

gettext

implements NLS (Native Language Support) API, which can be used to internationalize your PHP programs.

gmp

GNU multi-precision

hash

Encryption extension

iconv

Contains the interface for the iconv character set conversion function.

igbinary

Serialization and deserialization are more efficient than Php’s own.

imagick

Image Processing

intl

The Internationalization extension (further known as Intl) is a wrapper around the ICU library that enables PHP programmers to perform a variety of Locale-aware operations, including but not limited to formatting, transliteration, transcoding, calendar operations, UCA conformance collation, text positioning boundaries and the use of locale identifiers, time zones and glyphs, it tends to follow the ICU API closely and therefore has the ability to use C People with ICU experience in /C or Java can easily use the PHP API. Furthermore, such ICU files will help in understanding various ICU features.

json

json serialization related operations

libxml

libxml functions and constants are related to SimpleXML, XSLT is used together with DOM.

mbstring

Multi-byte string

memcached

memcached extension

mongodb

mongodb extension

mysqli

It is an enhanced version of the mysql system function, which is more stable, efficient and secure , corresponding to mysql_query() is mysqli_query(), which is object-oriented and uses objects to operate and drive the mysql database. Mysqli is a permanent connection function. Running mysqli multiple times will use the same connection process, thus reducing server overhead.

mysqlnd

MYSQLND provides support for the underlying interaction with the database (can be simply understood as network protocol interaction with the MySQL server).

openssl

Symmetric/asymmetric encryption and decryption, as well as PBKDF2, PKCS7, PKCS12, X509 and other encryption operations

pcntl

Multiple processes

pcre

regular

PDO

pdo Provides a unified API interface so that your PHP application does not care about the specific database server system type to be connected. In other words, if you use PDO's API, you can seamlessly switch database servers whenever needed. For example, any database such as MYSQL or SQLITE will work.

That is to say, from the perspective of most functions, the API interface provided by PDO and the interface provided by MYSQLI have the same effect on ordinary additions, deletions, modifications and queries.

pdo_mysql

PDO_MYSQL is a driver that implements the PHP Data Objects (PDO) interface to get from PHP to MySQL 3.x, 4.x and 5.x database access.

pdo_sqlite

PDO_SQLITE is a driver that implements the PHP Data Object (PDO) interface to access SQLite 3 databases.

Phar

After PHP5.3, a Java-like jar package named phar is supported. Used to package multiple PHP files into one file. This feature allows PHP to package and componentize applications as easily as Java. An application can be packaged into a Phar package and run directly in PHP-FPM.

posix

This module contains interfaces for those functions defined in the IEEE 1003.1 (POSIX.1) standard document that cannot be accessed by other means.

Used in process control.

readline

The readline extension function implements an interface to access the GNU Readline library. These functions provide an editable command line.

redis

redis extension

Reflection

It is used to export or extract detailed information about classes, methods, properties, parameters, etc., including comments.

shmop

Shared memory

SimpleXML

Processing xml

sockets

The Socket extension is based on the popular BSD sockets and implements the underlying interface for socket communication functions. It can be used as a socket server like the client.

SPL

SPL is a collection of interfaces and classes used to solve standard problems.

sqlite3

Support information for SQLite v3 database.

standard

Standard Library

sysvmsg

System V Semaphore

sysvsem

Message Queue

sysvshm

sysvshm provides a memory sharing solution

tokenizer

The tokenizer function provides a calling interface for the "PHP tokenizer" embedded in the Zend engine. Using these functions, you can write your own PHP source code analysis or modification tools without having to deal with language specifications at the lexical analysis level.

wddx

Web Distributed Data Exchange (WDDX)

https://blog.csdn.net/guoguo1980/article/details/2436342

xml

XML Parser

xmlreader

The XMLReader extension is an XML Pull parser.

xmlwriter

This is the XMLWriter extension. It wraps the libxml xmlWriter API.

This extension represents an author that provides a non-caching, forward-only way to generate streams or files containing XML data.

xsl

refers to the extended style sheet language.

mcrypt

is an encryption extension library. Loading it can use the 22 encryption and decryption algorithms that come with it

[Zend Modules]

Zend OPcache

opcache extension, caches Opocdes compiled from php code, eliminating the need for previous compilation steps every time it is requested. . Replaces the previous apc .
If you want to take advantage of APC's user cache, you also need to install APCu. APCu is available through PECL. APCu provides a complete backwards compatibility API for the shared memory user space cache provided by APC. APCu should not be installed with APC.

https://support.cloud.engineyard.com/hc/en-us/articles/205411888-PHP-Performance-I-Everything-You-Need-to-Know-About-OpCode-Caches

Recommended learning: php video tutorial

The above is the detailed content of Detailed introduction to common extensions in php. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:CSDN. If there is any infringement, please contact admin@php.cn delete
How to Use Sessions Effectively in PHP 7?How to Use Sessions Effectively in PHP 7?Mar 10, 2025 pm 06:20 PM

This article details effective PHP 7 session management, covering core functionalities like session_start(), $_SESSION, session_destroy(), and secure cookie handling. It emphasizes security best practices including HTTPS, session ID regeneration, s

How to Monitor PHP 7 Performance with Tools like New Relic?How to Monitor PHP 7 Performance with Tools like New Relic?Mar 10, 2025 pm 06:28 PM

This article explains how to monitor PHP 7 application performance using New Relic. It details New Relic's setup, key performance indicators (KPIs) like Apdex score and response time, bottleneck identification via transaction traces and error track

How to Upgrade from PHP 5.6 to PHP 7?How to Upgrade from PHP 5.6 to PHP 7?Mar 10, 2025 pm 06:29 PM

This article details upgrading PHP 5.6 to PHP 7, emphasizing crucial steps like backing up, checking server compatibility, and choosing an upgrade method (package manager, compiling, control panel, or web server configuration). It addresses potentia

How to Autoload Classes in PHP 7?How to Autoload Classes in PHP 7?Mar 10, 2025 pm 06:20 PM

This article explains PHP 7's autoloading, using spl_autoload_register() to load classes on demand. It details best practices like namespace-based autoloading and caching for performance optimization, addresses common issues (e.g., class not found

How to Deploy a PHP 7 Application to a Web Server?How to Deploy a PHP 7 Application to a Web Server?Mar 10, 2025 pm 06:28 PM

This article details deploying PHP 7 applications, covering methods (FTP, SSH, deployment tools), server configuration (Apache/Nginx, PHP-FPM), database setup, and crucial security considerations. It highlights common challenges like server compatib

How to Use Git for Version Control in PHP 7 Projects?How to Use Git for Version Control in PHP 7 Projects?Mar 10, 2025 pm 06:27 PM

This article guides PHP 7 developers on using Git for version control. It covers initialization, staging, committing, ignoring files, remote repositories, branching, merging, conflict resolution, and essential Git commands. Best practices for effic

How to Use Xdebug for Debugging PHP 7 Code?How to Use Xdebug for Debugging PHP 7 Code?Mar 10, 2025 pm 06:26 PM

This article explains how to use Xdebug for debugging PHP 7 code. It covers Xdebug configuration (installation, php.ini settings, IDE setup), breakpoint usage (conditional, function, remote), and troubleshooting connection issues. Effective debuggi

How to Include and Require Files in PHP 7?How to Include and Require Files in PHP 7?Mar 10, 2025 pm 02:52 PM

This article explains PHP 7's include, include_once, require, and require_once file inclusion methods. It details their differences in error handling (warnings vs. fatal errors) and multiple inclusion prevention. Best practices for file organizatio

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft