Home > Backend Development > PHP Tutorial > PHP process control while

PHP process control while

不言
Release: 2023-03-25 10:52:01
Original
1730 people have browsed it

This article mainly introduces the while of PHP process control, which has a certain reference value. Now I share it with everyone. Friends in need can refer to it

This article is for basic use Learners, experts please close this page

It takes 3 minutes to read this article. It’s hard to understand those who have difficulty?

<?php
$aaaa = 1;
while ($aaaa<= 10) {
    echo $aaaa++;  
}

$aaaa = 1;
while ($aaaa <= 10):
    print $aaaa;
    $aaaa++;
endwhile;
Copy after login

Related recommendations:

php process control alternative syntax for process control

The above is the detailed content of PHP process control while. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template