Home>Network programming tutorial> PHP tutorial
All ASP tutorial ASP tutorial ASP.NET tutorial PHP tutorial JSP tutorial C#/CSHARP tutorial XML tutorial Ajax tutorial Perl tutorial Shell tutorial Visual Basic tutorial Delphi tutorial Mobile development tutorial C/C++ tutorial Java tutorial J2EE/J2ME Software engineering
PHP tutorial
  • Introduction to php message queue

    Introduction to php message queue

    Introduction to PHP message queue: 1. The message queue is a queue stored in memory. 2. Since only one process can access the data in the message queue, no additional locks or semaphores are needed.
    2022-05-24
  • Use of PCRE2 in php

    Use of PCRE2 in php

    The use of PCRE2 in PHP: 1. Starting from PHP7.3, PCRE2 will be used as a new regular engine. 2. Existing regular expressions need to be migrated to comply with PCRE2 rules. These rules are more intrusive than before.
    2022-05-24
  • Use of trailing comma in php

    Use of trailing comma in php

    Use of trailing commas in PHP: 1. Append trailing commas at the end of parameter, element, and variable lists. 2. This feature has been allowed to be used within arrays, and starting from PHP7.2, the grouped namespace syntax also begins to support trailin
    2022-05-24
  • The use of Heredoc and Nowdoc syntax in php7.3

    The use of Heredoc and Nowdoc syntax in php7.3

    The use of Heredoc and Nowdoc syntax in php7.3: 1. Heredoc and Nowdoc syntax can be of great help when using multi-line long strings. 2. Indentation is supported before closing the identifier, and line breaks are no longer forced after closing the identif
    2022-05-24
  • php what does PSR-4 mean?

    php what does PSR-4 mean?

    The meaning of php PSR-4: 1. PSR-4 standardizes the specified file path to automatically load classes, and also standardizes the location of automatically loaded files. 2. Under the PSR-4 key, you can define the mapping relationship between namespace and
    2022-05-24
  • How to distinguish between require and include in php

    How to distinguish between require and include in php

    The difference between require and include in PHP: 1. require is unconditional. If require is added during the process, it will be executed first regardless of whether it is established. 2. Include has a return value, but require does not. 3. Require synt
    2022-05-23
  • What are the differences between get and post in php

    What are the differences between get and post in php

    The difference between get and post in php: 1. GET generates one TCP data packet, and POST generates two TCP data packets. 2. GET requests can only be URL encoded, while POST supports multiple encoding methods. 3. When the browser returns, GET is harmless
    2022-05-23
  • The difference between double quotes and single quotes in php

    The difference between double quotes and single quotes in php

    The difference between double quotes and single quotes in php: 1. Double quotes interpret variables, while single quotes do not interpret variables. 2. Insert single quotes within double quotes. If there are variables in single quotes, interpret the varia
    2022-05-23
  • The difference between Redis and Memcached in php

    The difference between Redis and Memcached in php

    The difference between Redis and Memcached in php: 1. Redis is a memory database. Memcache can also cache photos. 2. Redis can create nosql database, news queue, etc. Memcache can also cache SQL statements.
    2022-05-23
  • Introduction to php factory pattern

    Introduction to php factory pattern

    Introduction to PHP factory mode: 1. The factory mode solves how to create instance objects without using new. 2. There are some ways to create targets other than new. 2. Usually used with interfaces, the application does not need to know the specific det
    2022-05-23
  • How to understand php singleton mode

    How to understand php singleton mode

    Understanding of PHP singleton mode: 1. The singleton mode is very useful when you need to ensure that there is only one instance of an object. By giving control of object creation to a single point, only one instance of the application exists at any time
    2022-05-21
  • What is php short connection

    What is php short connection

    Introduction to PHP short connections: 1. Short connections generally only communicate read and write operations between the client and the server. Short connection management is simple. The existing connections are useful connections and do not require a
    2022-05-21
  • What is the long connection in php?

    What is the long connection in php?

    Introduction to PHP long connection: 1. Long connection means that after establishing a SOCKET connection, the connection will be maintained regardless of whether it is used or not, but the security is poor. 2. Long connections can save more TCP establish
    2022-05-21
  • The difference between TCP and UDP in php

    The difference between TCP and UDP in php

    The difference between TCP and UDP in php: 1. TCP is connection-oriented, while UDP is connectionless. 2. TCP is used when reliable transmission is necessary at the transport layer. UDP is mainly used for communications or broadcast communications that ha
    2022-05-21
  • How does php reference counting implement garbage collection?

    How does php reference counting implement garbage collection?

    PHP reference counting implements garbage collection: 1. Add a reference counter to the object, and the value of the reference counter will increase every time somewhere. Whenever a reference becomes invalid, the counter is decremented by one. 2. The garb
    2022-05-21