Home >Backend Development >PHP Tutorial >Several essential pieces of code that beginners should master when learning PHP development_PHP Tutorial
经典循环例子
for($counter = 1; $counter <= 6; $counter++) //循环6次
{
print("counter is $counter
"); //打印6次
}
?>
for的高级运用
print("
函数的简单调用:
Function with default parameters
Use the rule algorithm to determine whether it is an integer