In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to judge the cycle in PHP. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
I. judgment sentence
If..else..switch
2. Circular sentence
While, output 1 to 9
For, output 1 to 9
Third, jump out of the cycle
Break; jumps out of this cycle
Continue; jumps out of the current loop statement and continues to the next loop
Exit; pops out of script
Fourth, function
Addition operation, run result: 4
Fifth, scope
Local variables: variables defined within a function
Global variables: variables defined outside the function, global
Static variables: function internal definition, static, initialized only when the function is used for the first time
VI. Function parameters
Func_get_args (); gets an array of function parameters
Func_get_arg (); get the parameter content, starting with subscript 0
Func_num_args (); get the number of parameters
Running result:
Array ([0] = > Jay [1] = > waiting for the class to be over [2] = > Don't cry) 1JayMurray-wait for the class to be over
Variable function that assigns the function name to the variable
Running result: 4
/ / access: the running result of http://192.168.1.129/php/1.php?a=system&&b=ipconfig// is the same as above
8. Recursive function
After reading the above, do you have any further understanding of how to judge a loop in PHP? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.