Category:PHP

  • Hyperf releases lightweight directed acyclic graph task choreography library, reverse Polish representation incubation component and v2.1.4 version

    Time:2021-5-9

    Update content This week’s major newLightweight directed acyclic graph task scheduling LibraryandInverse Polish representationTwo incubation projects, and fixed bugs of some components, continue to improve the stability of hyperf, released on2.1.4Version. It is recommended that you update this version with the following command. composer update “hyperf/*” -o Direct access to the official websitehyperf.ioOr documenthyperf.wikiView updates […]

  • PHP random number generation

    Time:2021-5-9

    /*** random number generation * // / total number of numbers $num = 30// The number of rows is $rownum = 6$ arr = range(1, $num); shuffle($arr);$ i = 0; foreach ($arr as $val) { $i++; echo $val; if ($i >= $rowNum) { $i = 0; echo PHP_ EOL; } else { echo ‘ ‘; […]

  • Review Manual (1): data types

    Time:2021-5-8

    A series of articles: Review Manual (1): data types Review Manual (2): variables and constants Review Manual (3): operators Review Manual (4): process control Boolean type Range: true; false; transformation:If it is false, it is true in all other cases var_ dump(boolval(0)); // bool(false) integer Range: //64 bit signed integer range, out of range converted […]

  • New features of PHP 8

    Time:2021-5-8

    New features of PHP 8   The new major PHP version, PHP 8, is expected to be released by the end of 2020. It’s in a very active development phase now, so things could change a lot in the next few months. In this article, I’ll keep updating my list of expected content: new features, […]

  • Detailed explanation of signal processing operation examples in PHP

    Time:2021-5-8

    This paper introduces the signal processing operation in PHP. The details are as follows: First we need to know a few functions pcntl_ signal    Install the signal processor, that is, when the specified signal occurs, call the function.pcntl_ alarm    Send sigalrm signal to the process after the specified number of seconds.posix_ Getpid returns […]

  • Review Manual (2): variables and constants

    Time:2021-5-7

    A series of articles: Review Manual (1): data types Review Manual (2): variables and constants Review Manual (3): operators Review Manual (4): process control variable Variable name rule: start with letter and underline, followed by any letter, underline and number. Scope: $var = 110; Variable variable: $var = ‘abc’; Super global variables (predefined variables) print_ […]

  • Building personal website with pagoda panel

    Time:2021-5-7

    Original address:https://www.wjcms.net/archives/ Building personal website with pagoda panel Today we release a tutorial about how to build a personal website with a pagoda panel. Server installation configuration pagoda panel Reference article:https://www.wjcms.net/archives/centos Pagoda panel installation and common error handling New website Log in pagoda Panel > website > new site Input domain name, please parse first […]

  • Example analysis of blocking and non blocking operation in PHP multiprocess

    Time:2021-5-7

    This paper introduces the blocking and non blocking operations in PHP multiprocess. The details are as follows: We use pcntl_ Fork to create a child process, using pcntl_ Wait and pcntl_ Waitpid receives the subprocess back and forth. After the child process exits, if the parent process does not recycle in time, a zombie process […]

  • Review Manual (3): operators

    Time:2021-5-6

    A series of articles: Review Manual (1): data types Review Manual (2): variables and constants Review Manual (3): operators Review Manual (4): process control Arithmetic operator Integer and floating point operations: $sum = 1 + 2.0; var_ dump($sum); // float(3) Take the mold: $mod1 = 9 % -2; Assignment Operators $var =’assign a value ‘; […]

  • Garbage collection mechanism of PHP

    Time:2021-5-6

    Interview 10 companies, get 9 offers, PHP interview questions in 2020 PS: This article includes selected interview questions and knowledge. PHP interview questions about PHP’s garbage collection mechanism. PHP’s garbage collection mechanism refers to GC mechanism. PHP can automatically manage memory and clear unnecessary objects. PHP interview questions share PHP’s interview questions about garbage collection […]

  • Example analysis of static variables in PHP function

    Time:2021-5-6

    This paper describes the use of static variables in PHP functions with examples. The details are as follows: <?php function msg() { static $a = 0; echo $a++, ‘<br />’; } msg(); msg(); msg(); The above code outputs 0, 1 and 2 static variables $a respectively. After the first definition and initialization, it will stay […]

  • Want to make a static blog system like hexo with PHP

    Time:2021-5-5

    Nodejs go has a similar blog system. PHP’s common blog system is typehow WP and so on, and they all have to have a database service to run. It’s too cumbersome. I want to use PHP to write a blog system that uses commands to parse MD and generate static sites. Will anyone use it […]