while (expr){ statement }
或者
while (expr): statement endwhile;
该语法表示,只要expr表达式为TRUE,那么就一直执行statement直到expr为FALSE为止,statement表示要执行的动作或逻辑。
<?php $i = 1; while ($i <= 10) { echo $i; $i++; } ?>
该例子循环输出1到10。
原文地址:http://www.manongjc.com/php/php_while.html
php相关阅读:
php strrpos() 函数区分大小写的查找字符串在另一字符串中最后一次出现的位置
php strripos() 函数查找字符串在另一字符串中最后一次出现的位置
php strpos() 函数查找字符串在另一字符串中第一次出现的位置
php stripos() 查找字符串在另一字符串中第一次出现的位置
php stripslashes() 函数删除、过滤字符串中的反斜杠

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Zend Studio 13.0.1
Powerful PHP integrated development environment

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
