Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the three points in php?

Shulou Source: shulou.com Published: 2022-06-02 12:32:58 11月15日 Update

This article mainly introduces "what are the three points in php". In daily operation, I believe many people have doubts about what the three points in php are. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about "what are the three points in php?" Next, please follow the editor to study!

In php, three dots represent a variable number of parameter lists. In PHP 5.6 and above, they are represented by. Syntax, while in PHP5.5 and earlier versions it is implemented using the functions func_num_args (), func_get_arg (), and func_get_args ().

This article operating environment: Windows7 system, PHP7.1, Dell G3 computer.

What are the three points of the php method?

The usage of three points in php

Explanation: a variable number of parameter lists

In PHP version 5. 6 and above, by. Syntax implementation; in PHP 5.5 and earlier, it was implemented using the functions func_num_args (), func_get_arg (), and func_get_args ()

Official document: https://www.php.net/manual/zh/functions.arguments.php#functions.variable-arg-list

Case study:

Output of the above case: 10

Output of the above case: 3 / 3 (same result, two 3s)

At this point, the study of "what are the three points in php" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Three version study case function parameter quantity method more syntax variable help output practical next two official document article are created by Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Docker vpn MySQL OPPO Reno