current location:Home > Technical Articles > Backend Development > PHP7

  • PHP 7.4 allows throwing exceptions from __toString()
    PHP 7.4 allows throwing exceptions from __toString()
    Throwing exceptions from __toString() is currently prohibited and will result in a fatal error. This makes calling arbitrary code dangerous and makes it a problematic general-purpose API. This RFC aims to remove this restriction.
    PHP7 3075 2023-02-17 13:22:01
  • Weak References in PHP 7.4
    Weak References in PHP 7.4
    Weak references allow the programmer to retain a reference to an object without preventing the object from being destroyed; they are useful for implementing cache-like structures. They currently have extended support in PHP.
    PHP7 3771 2023-02-17 13:20:02
  • Numeric Literal Separator in PHP 7.4
    Numeric Literal Separator in PHP 7.4
    The human eye is not optimized for quickly parsing long sequences of numbers. Therefore, the lack of visual delimiters makes reading and debugging code longer and can lead to unexpected errors.
    PHP7 3254 2023-02-17 13:18:01
  • Preloading (Opcache Preloading) in PHP 7.4
    Preloading (Opcache Preloading) in PHP 7.4
    In PHP 7.4, support for preloading was added, a feature that can significantly improve the performance of your code.
    PHP7 7571 2023-02-17 13:16:02
  • Typed Properties in PHP 7.4
    Typed Properties in PHP 7.4
    Type attributes were added in PHP 7.4 and major improvements were made to PHP's type system. These changes are completely optional and do not break previous versions.
    PHP7 4408 2023-02-17 13:14:01
  • Arrow Functions in PHP 7.4
    Arrow Functions in PHP 7.4
    Short closures, also known as arrow functions, are a way of writing short functions in PHP. This notation is useful when passing closures to functions such as array_map or array_filter.
    PHP7 4867 2023-02-17 13:12:02
  • Comparison of exception and error handling in PHP7 with previous versions
    Comparison of exception and error handling in PHP7 with previous versions
    Comparing exception and error handling in PHP7 with previous versions, the difference is that the latter can capture fatal errors and can output helloword normally.
    PHP7 2422 2023-02-17 13:10:01
  • How to install php7 on ubuntu
    How to install php7 on ubuntu
    How to install php7 on ubuntu: first download php7 and common extensions through "apt-get"; then enable Apache's php7.0 module through "a2enmod"; then start the php7.0-fpm process through "start".
    PHP7 3266 2023-02-17 13:08:02
  • New features in PHP7.2 (parameter type declaration)
    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.
    PHP7 3269 2023-02-17 13:06:01
  • The meaning of php7 type constraints
    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.
    PHP7 2983 2023-02-17 13:04:02
  • How to install PHP 7.4 in CentOS 8/RHEL 8 system
    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.
    PHP7 5819 2023-02-17 13:02:01
  • PHP7 does not support curl vc15 version solution!
    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.
    PHP7 3261 2023-02-17 13:00:02
  • ubuntu 16.04 + apache2 switch php7.1 to php7.3
    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.
    PHP7 2877 2023-02-17 12:58:01
  • PHP7 windows adds custom extensions and compiles PHP source code
    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.
    PHP7 3605 2023-02-17 12:56:01
  • php7 cannot connect to mysql
    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.
    PHP7 6143 2023-02-17 12:54:01

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28