This article mainly introduces the usage of php built-in functions. The examples analyze the calling methods and usage techniques of php built-in functions, which has certain reference For reference value, friends in need can refer to it
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
?
3 4 513 14
15
16
17
18
19
20
21
22
23
24
|
<🎜>function msg()<🎜>
<🎜>{<🎜>
<🎜>echo("Displaying even numbers");
function displayeven()
{
$ctr=0;
echo("");
for($i=2;$i<=100;$i =2)
{
echo("$i ");
$ctr ;
if($ctr ==0)
{
echo(" ");
}
}
echo(" |