The examples in this article describe the usage of php built-in functions. Share it with everyone for your reference. The specific analysis is as follows:
In PHP, you can embed a function inside the function, and the calling scope is limited to the function itself
<?php function msg() { echo("<center><h2>Displaying even numbers</h2></center><p><p>"); function displayeven() { $ctr=0; echo("<font size=4>"); for($i=2;$i<=100;$i+=2) { echo("$i "); $ctr++; if($ctr%10==0) { echo("<p>"); } } echo("</font>"); } } msg(); displayeven(); ?>
I hope this article will be helpful to everyone’s PHP programming design.