Home  >  Article  >  Backend Development  >  PHP process control while

PHP process control while

不言
不言Original
2018-05-04 09:33:111636browse

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;

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!

Statement:
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