


New features in PHP7.2 (parameter type declaration)
PHP 7.2 has been officially released with new features, functionality, and improvements that allow us to write better code. In this article, I'll introduce some of the most interesting language features in PHP 7.2 - parameter type declarations.
Nov 11, 2019 pm 01:51 PM
The meaning of php7 type constraints
Before php7, functions and class methods did not need to declare variable types, and any data could be passed and returned. As a result, almost most calling operations had to determine whether the returned data type was qualified. In order to solve this problem, php7 introduced types. statement.
Nov 09, 2019 am 09:19 AM
How to install PHP 7.4 in CentOS 8/RHEL 8 system
This article describes how to install PHP 7.4 in the CentOS 8/RHEL 8 operating system. PHP version 7.4.0RC1 has been released to developers and interested users for testing. Please note that PHP 7.4.0RC1 is not suitable for major deployments, and the expected official release date for GA is November 28, 2019.
Nov 01, 2019 pm 01:12 PM
PHP7 does not support curl vc15 version solution!
The ultimate solution: 1. Remove the semicolon before extension=curl; 2. Place libssh2.dll in the php directory into the bin directory of the apache installation directory. 3. Restart apache ok, perfect solution.
Nov 01, 2019 pm 01:06 PM
ubuntu 16.04 + apache2 switch php7.1 to php7.3
Background: When updating Ubuntu, you choose to keep the current PHP version, which results in multiple PHP versions appearing, and phpinfo displays php7.1. After checking with php -i, I found that many extensions cannot be opened.
Nov 01, 2019 pm 12:01 PM
PHP7 windows adds custom extensions and compiles PHP source code
Determine the version that needs to be compiled, check PHPINFO, and determine the PHP version, VC version and PHP bit number. Download the corresponding Visual Studio or compiler according to the PHP VC version. The blogger's version in the picture below is VC15 and you need to download the Visual Studio 2017 version.
Nov 01, 2019 am 11:57 AM
php7 cannot connect to mysql
The reason why php7 cannot connect to mysql is: php7 abandoned the mysql_connect() function. Solution: 1. Add the php.ini file; 2. Remove the comment of the option extension; 3. Use PDO or mysqli to connect.
Oct 21, 2019 pm 04:36 PM
php5 upgrade php7 fails to connect to mysql database
The solution to the failure of php5 to connect to mysql database when php7 is upgraded is: Since the mysql_connect() function used by php5 to connect to mysql has been abandoned in php7, the function mysqli_connect() needs to be used in php7 to connect to the mysql database.
Oct 18, 2019 pm 03:32 PM
What is the difference between php7 garbage collection and php5
The difference between the garbage collection mechanisms of php7 and php5 is: the garbage collection mechanisms of PHP5 and PHP7 both belong to reference counting. However, in the algorithm processing of complex data types, the memory required by zval in PHP7 is no longer allocated separately from the heap. Store the reference count yourself.
Oct 18, 2019 pm 03:17 PM
How to install php7
The installation method of php7 is: 1. Download the php7 decompressed file and rename the decompressed file to PHP7; 2. Copy php.ini-development and rename it to PHP.ini; 3. Modify the apache configuration file httpd.conf.
Oct 18, 2019 pm 02:46 PM
Why does php7 performance improve?
The reasons for the performance improvement of php7 are: 1. The structure for storing variables becomes smaller; 2. The change of the string structure; 3. The change of the array structure; 4. The function calling mechanism is improved and the execution efficiency is improved.
Oct 18, 2019 pm 02:32 PM
Interview on the difference between php7 and php5
The difference between php7 and php5 is: 1. The performance of php7 is twice that of php5; 2. Many fatal errors in php5 have been changed into exceptions in php7; 3. Compared with php5, php7 has removed some old SAPIs that are no longer supported. .
Oct 18, 2019 pm 02:24 PM
Differences between php versions
The difference between various versions of PHP is: PHP5.3 adds a lot of new features, and also adds magic methods __invoke() and __callStatic(); zval in PHP7 uses stack memory, saving memory allocation.
Oct 18, 2019 am 10:46 AM
Reasons for performance improvement of php7
The reasons for the performance improvement of PHP7 are: 1. The structure for storing variables becomes smaller; 2. The change of the string structure; 3. The change of the array structure; 4. The function calling mechanism is improved and the execution efficiency is improved.
Oct 12, 2019 pm 05:58 PM
Hot tools Tags

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article
What's New in Windows 11 KB5054979 & How to Fix Update Issues
How to fix KB5055523 fails to install in Windows 11?
InZoi: How To Apply To School And University
How to fix KB5055518 fails to install in Windows 10?
Where to find the Site Office Key in Atomfall

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version
Chinese version, very easy to use
